/* Mobile First Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.container {
    width: 90%;
    margin-top: 0vh;
    background: var(--bg-glass);
    backdrop-filter: var(--backdrop-blur);
    border: 0.3vw solid var(--card-border);
    border-radius: 4vw;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.header {
    padding: 2vh 4vw;
    border-bottom: 0.3vw solid var(--card-border);
    background: var(--card-bg);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 3vw;
    margin-bottom: 2vw;
}

.header-icon {
    width: 8vw;
    height: 8vw;
    color: var(--accent-primary);
}

h1 {
    font-size: 5vw;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 3.5vw;
    line-height: 1.3;
}

form {
    padding: 6vw;
}

.form-group {
    margin-bottom: 5vw;
}

label {
    display: flex;
    align-items: center;
    gap: 2vw;
    margin-bottom: 2vw;
    color: var(--text-primary);
    font-size: 4vw;
    font-weight: 600;
}

.label-icon {
    width: 4vw;
    height: 4vw;
    color: var(--accent-primary);
}

input, textarea {
    width: 100%;
    padding: 2vw 2vw;
    font-size: 3.5vw;
    font-weight: 500;
    color: var(--input-text);
    background: var(--input-bg);
    border: 0.3vw solid var(--input-border);
    border-radius: 3vw;
    outline: none;
    transition: all var(--transition-base);
    box-shadow: var(--input-shadow);
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 30vw;
}

input:focus, textarea:focus {
    border-color: var(--input-border-focus);
    background: rgba(0, 217, 232, 0.14);
    box-shadow: var(--input-shadow-focus);
}

input.error, textarea.error {
    border-color: #EF4444;
}

input::placeholder, textarea::placeholder {
    color: var(--input-placeholder);
}

.error-message {
    color: #EF4444;
    font-size: 3.2vw;
    margin-top: 1.5vw;
    display: none;
    align-items: center;
    gap: 1vw;
}

.error-message.show {
    display: flex;
}

.error-icon {
    width: 3.5vw;
    height: 3.5vw;
}

.char-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5vw;
    font-size: 3.2vw;
}

.char-count {
    color: var(--text-secondary);
}

.char-count.warning {
    color: #F59E0B;
}

.char-count.danger {
    color: #EF4444;
}

.submit-btn {
    width: 100%;
    padding: 3.5vw;
    font-size: 4vw;
    font-weight: 700;
    color: var(--btn-primary-text);
    background: var(--btn-primary-bg);
    border: none;
    border-radius: 3vw;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5vw;
    box-shadow: var(--btn-primary-shadow);
    transition: all var(--transition-base);
    outline: none;
}

.submit-btn:hover:not(:disabled) {
    background: var(--btn-primary-hover);
    transform: translateY(-0.5vw);
    box-shadow: 0 3vw 8vw rgba(0, 217, 232, 0.5);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.submit-btn:disabled {
    background: rgba(0, 217, 232, 0.4);
    cursor: not-allowed;
}

.btn-icon {
    width: 4vw;
    height: 4vw;
}

.spinner {
    width: 4vw;
    height: 4vw;
    border: 0.6vw solid rgba(10, 26, 36, 0.3);
    border-top: 0.6vw solid var(--btn-primary-text);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.submit-btn .btn-icon {
    display: inline-block;
}

.submit-btn .spinner {
    display: none;
}

.submit-btn.loading .btn-icon {
    display: none;
}

.submit-btn.loading .spinner {
    display: inline-block;
}

.custom-dropdown {
  width: 100% !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-2vw);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .container {
        width: 70%;
        margin-top: 5vh;
        border-width: 0.2vw;
        border-radius: 2vw;
    }

    .header {
        padding: 2vw;
        border-bottom-width: 0.2vw;
    }

    .header-content {
        gap: 2vw;
        margin-bottom: 1vw;
    }

    .header-icon {
        width: 3.5vw;
        height: 3.5vw;
    }

    h1 {
        font-size: 3vw;
    }

    .subtitle {
        font-size: 1.7vw;
    }

    form {
        padding: 2vh 4vw;
    }

    .form-group {
        margin-bottom: 2.5vw;
    }

    label {
        gap: 1.5vw;
        margin-bottom: 1vw;
        font-size: 2vw;
    }

    .label-icon {
        width: 2.2vw;
        height: 2.2vw;
    }

    input, textarea {
        padding: 1vw 2vw;
        font-size: 2.2vw;
        border-width: 0.2vw;
        border-radius: 2vw;
    }

    textarea {
        min-height: 18vw;
    }

    .error-message {
        font-size: 1.8vw;
        margin-top: 1vw;
        gap: 0.8vw;
    }

    .error-icon {
        width: 2vw;
        height: 2vw;
    }

    .char-counter {
        margin-top: 1vw;
        font-size: 1.8vw;
    }

    .submit-btn {
        padding: 2vw;
        font-size: 2.2vw;
        border-radius: 2vw;
        gap: 1.5vw;
    }

    .submit-btn:hover:not(:disabled) {
        transform: translateY(-0.3vw);
        box-shadow: 0 2vw 6vw rgba(0, 217, 232, 0.5);
    }

    .btn-icon {
        width: 2.8vw;
        height: 2.8vw;
    }

    .spinner {
        width: 2.8vw;
        height: 2.8vw;
        border-width: 0.4vw;
    } 
}

@media (min-width: 1024px), (orientation: landscape) {
    body {
        padding: 20px;
    }

    .container {
        max-width: 600px;
        border-width: 1px;
        border-radius: 16px;
    }

    .header {
        padding: 32px;
        border-bottom-width: 1px;
    }

    .header-content {
        gap: 12px;
        margin-bottom: 8px;
    }

    .header-icon {
        width: 32px;
        height: 32px;
    }

    h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 15px;
    }

    .success-message {
        margin: 24px 32px;
        padding: 16px 20px;
        border-width: 1px;
        border-radius: 12px;
        gap: 12px;
    }

    .success-icon {
        width: 24px;
        height: 24px;
    }

    .success-title {
        font-size: 15px;
    }

    .success-text {
        font-size: 13px;
        margin-top: 4px;
    }

    form {
        padding: 32px;
    }

    .form-group {
        margin-bottom: 24px;
    }

    label {
        gap: 8px;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .label-icon {
        width: 16px;
        height: 16px;
    }

    input, textarea {
        padding: 14px 16px;
        font-size: 15px;
        border-width: 1px;
        border-radius: 12px;
    }

    textarea {
        min-height: 120px;
    }

    .error-message {
        font-size: 13px;
        margin-top: 6px;
        gap: 4px;
    }

    .error-icon {
        width: 14px;
        height: 14px;
    }

    .char-counter {
        margin-top: 6px;
        font-size: 13px;
    }

    .submit-btn {
        padding: 16px;
        font-size: 16px;
        border-radius: 12px;
        gap: 10px;
    }

    .submit-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(0, 217, 232, 0.5);
    }

    .btn-icon {
        width: 20px;
        height: 20px;
    }

    .spinner {
        width: 20px;
        height: 20px;
        border-width: 3px;
    }     
}

@media (orientation: landscape) and (hover: none) and (pointer: coarse) {
    html, body {
        overflow: auto;
    }
}