/* ============================================
   CONTACT PAGE CSS - WHITE THEME
   Full Replacement Stylesheet
   ============================================ */

/* Container & Layout */
.contact-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.contact-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 24px color-mix(in srgb, black 6%, transparent), 0 1px 4px color-mix(in srgb, black 4%, transparent);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

/* Header Section */
.contact-header {
    background: var(--white);
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-100);
}

.contact-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    letter-spacing: -0.5px;
    color: var(--gray-800);
}

.contact-subtitle {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* Content Grid Layout */
.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem 2rem;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .contact-header {
        padding: 2rem 1.5rem 1.5rem;
    }
}

/* Form Section */
.contact-form-section {
    padding: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    letter-spacing: 0.01em;
}

.label-icon {
    width: 16px;
    height: 16px;
    color: var(--secondary);
    flex-shrink: 0;
    stroke-width: 2;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--white);
    color: var(--gray-800);
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input:hover {
    border-color: var(--primary);
    background: var(--white);
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
    opacity: 0.6;
    border-color: var(--gray-200);
    color: var(--gray-400);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.input-focus-border {
    display: none;
}

/* Character Counter */
.character-count {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-align: right;
    margin-top: 0.25rem;
    font-weight: 400;
}

.character-count.warning {
    color: var(--warning);
}

.character-count.danger {
    color: var(--error);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.submit-btn:hover {
    background: color-mix(in srgb, var(--primary) 80%, black);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent);
}

.submit-btn:active {
    transform: translateY(0);
    background: color-mix(in srgb, var(--primary) 70%, black);
}

.submit-btn:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled:hover {
    background: var(--gray-300);
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(2px);
}

.submit-btn:disabled .btn-icon {
    transform: none;
}

.timer-text {
    font-size: 0.85rem;
    color: var(--error);
    font-weight: 500;
}

/* Form Message */
.form-message {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    line-height: 1.5;
}

.form-message.success {
    background: color-mix(in srgb, var(--success) 10%, white);
    color: color-mix(in srgb, var(--success) 50%, black);
    border: 1px solid color-mix(in srgb, var(--success) 20%, white);
}

.form-message.error {
    background: color-mix(in srgb, var(--error) 10%, white);
    color: color-mix(in srgb, var(--error) 50%, black);
    border: 1px solid color-mix(in srgb, var(--error) 20%, white);
}

/* Contact Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-card {
    background: var(--white);
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid var(--success);
}

.info-card:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 20%, transparent);
    background: var(--white);
}

.info-icon-wrapper {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.info-icon {
    width: 20px;
    height: 20px;
    color: var(--white);
    stroke-width: 2;
}

.info-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 0.5rem;
}

.info-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid var(--gray-200);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 30%, transparent);
    border-color: var(--primary);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 8px 24px color-mix(in srgb, black 12%, transparent), 0 2px 8px color-mix(in srgb, black 6%, transparent);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 420px;
    animation: slideInRight 0.4s ease;
    border: 1px solid var(--gray-100);
    pointer-events: auto;
}

.toast.success {
    border-left: 3px solid var(--success);
}

.toast.error {
    border-left: 3px solid var(--error);
}

.toast-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
}

/* Keyframe Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .contact-page-wrapper {
        padding: 1rem 0.5rem;
    }

    .contact-container {
        border-radius: 14px;
    }

    .contact-header {
        padding: 2rem 1rem 1.5rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-subtitle {
        font-size: 0.95rem;
    }

    .contact-content {
        padding: 1.25rem 1rem;
        gap: 1.5rem;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .timer-text {
        text-align: center;
    }

    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .toast {
        min-width: unset;
        max-width: unset;
    }
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}