.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

/* Done page specific adjustment for card */
.contact-card.done-card {
    padding: 50px 40px;
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-title h2 i {
    color: #cd2026;
    margin-right: 12px;
}

.contact-intro {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
    background-color: #f9f9f9;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #cd2026;
}

.line-link {
    color: #00B900;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s;
}

.line-link:hover {
    opacity: 0.8;
    text-decoration: none;
    color: #00B900;
}

.line-icon {
    font-size: 1.2em;
    margin-left: 4px;
}

/* Material Textfield Customization for Contact */
.manual-input-group {
    margin-bottom: 24px;
}

/* Loading Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.overlay.open {
    display: flex;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #cd2026;
}

/* Success Page Specifics */
.success-icon {
    font-size: 4rem;
    color: #78d644; /* Fresh Green */
    margin-bottom: 24px;
}

.contact-details {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
    border-left: 4px solid #78d644;
}

.detail-row {
    margin-bottom: 12px;
    font-size: 1rem;
}

.detail-label {
    font-weight: 700;
    color: #555;
    display: inline-block;
    width: 120px;
}

.home-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: #333;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.home-btn:hover {
    background-color: #555;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-container {
        padding: 40px 15px;
    }

    .contact-card {
        padding: 24px;
        border-radius: 16px;
    }

    .contact-card.done-card {
        padding: 30px 20px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .contact-intro {
        padding: 16px;
        margin-bottom: 30px;
        font-size: 0.95rem;
    }

    .contact-details {
        padding: 20px;
    }

    .detail-label {
        width: 100px;
    }
}

/* Utilities refactored from inline styles */
.qa-link {
    color: #cd2026;
    font-weight: 700;
}

.notice-text {
    font-size: 0.9rem;
    color: #888;
}

.detail-row-content {
    margin-top: 16px;
    border-top: 1px dashed #ddd;
    padding-top: 16px;
}

.detail-label-block {
    display: block;
    margin-bottom: 8px;
}

.contact-content-display {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #666;
}

/* SweetAlert2 custom content styles */
.swal-text-left {
    text-align: left;
    font-size: 0.95rem;
}

.swal-confirm-text {
    margin-top: 20px;
}

.loading-text {
    margin-top: 15px;
    font-weight: 700;
    color: #555;
}

/* Q&A Notice Box Styles */
.qa-notice-box {
    background-color: #fff8e1; /* Light yellow background */
    border: 2px solid #ffecb3;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.qa-icon {
    font-size: 2rem;
    color: #ffc107;
}

.qa-text {
    flex: 1;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    min-width: 200px;
}

.qa-link {
    color: #cd2026;
    font-weight: 700;
    text-decoration: underline;
}

.qa-button {
    background-color: #cd2026;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.qa-button:hover {
    background-color: #a0181d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(205, 32, 38, 0.2);
}

@media (max-width: 768px) {
    .qa-notice-box {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

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

    .qa-button {
        width: 100%;
        text-align: center;
    }
}
