/* signUp.css - Page-specific styles only */

/* Extra variables for this page */
:root {
    --success-green: #10B981;
    --error-red: #EF4444;
    --warning-amber: #F59E0B;
}

/* Left Panel */
.left-panel {
    overflow-y: auto;
}

/* Header */
.header {
    margin-bottom: 30px;
}

.support-link {
    font-size: 14px;
    color: var(--rich-black);
}

.support-link a {
    color: var(--tufts-blue);
    text-decoration: underline;
}

.support-link a:hover {
    text-decoration: none;
}

/* Progress */
.progress-container {
    margin-bottom: 30px;
    max-width: 600px;
}

.progress-fill {
    width: 20%;
}

/* Content */
.content {
    flex: 1;
    max-width: 650px;
}

.page-title {
    font-size: 28px;
    color: var(--tufts-blue);
    margin-bottom: 8px;
}

.page-subtitle {
    margin-bottom: 30px;
}

/* Form */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--rich-black);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--magenta-glow);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Heebo', sans-serif;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--white);
}

.form-input::placeholder {
    color: #A0AEC0;
}

.form-input:focus {
    border-color: var(--tufts-blue);
    box-shadow: 0 0 0 3px rgba(0, 74, 159, 0.1);
}

.form-input.error {
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.success {
    border-color: var(--success-green);
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A6A7A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 6px;
}

.form-error {
    font-size: 12px;
    color: var(--error-red);
    margin-top: 6px;
    display: none;
}

.form-error.show {
    display: block;
}

/* Phone Input with Prefix */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-input-wrapper:focus-within {
    border-color: var(--tufts-blue);
    box-shadow: 0 0 0 3px rgba(0, 74, 159, 0.1);
}

.phone-prefix {
    background: var(--light-gray);
    padding: 14px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--rich-black);
    border-right: 1px solid var(--medium-gray);
    user-select: none;
}

.phone-input-with-prefix {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
}

.phone-input-with-prefix:focus {
    box-shadow: none !important;
}

/* Password Strength */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-gray);
    padding: 4px;
}

.toggle-password:hover {
    color: var(--tufts-blue);
}

.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--medium-gray);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.strength-bar.weak { background: var(--error-red); }
.strength-bar.medium { background: var(--warning-amber); }
.strength-bar.strong { background: var(--success-green); }

/* Navigation */
.nav-buttons {
    margin-top: 30px;
}

.btn-proceed {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-proceed:disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
    transform: none;
}

.btn-proceed .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Response Messages */
.response-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.response-message.show {
    display: block;
}

.response-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-green);
    color: #065F46;
}

.response-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-red);
    color: #991B1B;
}

.response-message h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.response-message p {
    font-size: 13px;
    line-height: 1.5;
}

.response-message ul {
    margin-top: 8px;
    padding-left: 20px;
}

.response-message li {
    font-size: 13px;
    margin-bottom: 4px;
}

/* Right Panel overrides */
.right-panel {
    width: 45%;
    max-width: 600px;
}

.gradient-circle.cyan {
    top: 30%;
}

/* Promo Content */
.promo-content {
    align-items: stretch;
}

/* Laptop illustration overrides */
.laptop-frame {
    max-width: 320px;
    margin: 0 auto;
}

.laptop-screen {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d1f33 100%);
    border-radius: 8px 8px 0 0;
    padding: 20px;
    border: 3px solid #333;
}

.video-call-grid {
    height: 100%;
}

.video-participant {
    background: linear-gradient(135deg, rgba(0, 74, 159, 0.3) 0%, rgba(1, 17, 30, 0.5) 100%);
}

.participant-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.laptop-base {
    background: linear-gradient(to bottom, #444 0%, #222 100%);
    border-radius: 0 0 4px 4px;
    margin: 0 20px;
}

/* Promo Text overrides */
.discount-value {
    font-size: 120px;
    font-weight: 800;
}

.discount-value span {
    font-size: 60px;
}

.discount-label {
    font-size: 32px;
}

.discount-sublabel {
    font-size: 32px;
}

.promo-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.promo-buttons {
    justify-content: center;
}

.btn-explore {
    letter-spacing: 0.5px;
}

.btn-explore:hover {
    transform: translateY(-2px);
}

.learn-more {
    font-size: 13px;
    transition: color 0.2s ease;
}

.learn-more:hover {
    color: var(--tufts-blue);
    opacity: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .right-panel {
        width: 40%;
    }

    .discount-value {
        font-size: 80px;
    }

    .discount-label,
    .discount-sublabel {
        font-size: 24px;
    }
}

@media (max-width: 900px) {
    .right-panel {
        min-height: 400px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .btn-back,
    .btn-proceed {
        width: 100%;
        justify-content: center;
    }
}
