/* ===== CONTACT PAGE STYLES ===== */

/* ----- CONTACT HERO SECTION ----- */
.contact-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--first-color) 0%, var(--second-color) 100%);
    color: var(--color-white);
    margin-bottom: 80px;
    border-radius: 20px;
    margin-top: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-white) !important;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--color-white) !important;
}

/* ----- CONTACT METHODS GRID ----- */
.contact-methods {
    margin-bottom: 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--first-color), var(--second-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--color-white);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}

.contact-card p {
    color: #777;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--first-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

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

/* ----- CONTACT FORM SECTION ----- */
.contact-form-section {
    margin-bottom: 80px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

.form-header p {
    color: #777;
    font-size: 1rem;
    line-height: 1.6;
}

/* ----- IDENTITY NOTICE ----- */
.identity-notice {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #f8f9ff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 40px;
    border-left: 4px solid var(--first-color);
}

.notice-icon {
    width: 50px;
    height: 50px;
    background: var(--first-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-content h4 {
    color: var(--text-color-second);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.notice-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ----- FORM STYLES ----- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-color-second);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--color-white);
    color: var(--text-color-second);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px rgba(110, 87, 224, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--first-color);
    cursor: pointer;
    margin-top: 2px;
}

.form-checkbox label {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.submit-btn {
    background: linear-gradient(135deg, var(--first-color), var(--first-color-hover));
    color: var(--color-white);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    align-self: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(110, 87, 224, 0.3);
}

.submit-btn i {
    font-size: 1.2rem;
    transform: rotate(-45deg);
}

/* ----- ADDITIONAL INFO SECTION ----- */
.additional-info {
    margin-bottom: 60px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--third-color), #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--color-white);
}

.info-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}

.info-card p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ----- DARK MODE STYLES ----- */
body.dark-mode .contact-hero {
    background: linear-gradient(135deg, var(--first-color) 0%, var(--second-color) 100%);
}

body.dark-mode .contact-card,
body.dark-mode .form-container,
body.dark-mode .info-card {
    background: #1a1a1a;
    border-color: #333;
}

body.dark-mode .contact-card h3,
body.dark-mode .form-header h2,
body.dark-mode .form-group label,
body.dark-mode .info-card h4,
body.dark-mode .notice-content h4 {
    color: #f5f5f5 !important;
}

body.dark-mode .contact-card p,
body.dark-mode .form-header p,
body.dark-mode .info-card p,
body.dark-mode .notice-content p,
body.dark-mode .form-checkbox label {
    color: #ccc !important;
}

body.dark-mode .identity-notice {
    background: #222;
    border-left-color: var(--first-color);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #222;
    border-color: #444;
    color: #f5f5f5;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px rgba(110, 87, 224, 0.2);
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: #888;
}

/* ----- RESPONSIVE DESIGN ----- */
@media only screen and (max-width: 768px) {
    .contact-hero {
        padding: 60px 20px 40px;
        margin-bottom: 60px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .form-container {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .identity-notice {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-card {
        padding: 25px 20px;
    }
}

@media only screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .form-container {
        margin: 0 10px;
        padding: 25px 15px;
    }
    
    .contact-card {
        padding: 25px 15px;
    }
    
    .submit-btn {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

/* ----- ACCESSIBILITY IMPROVEMENTS ----- */
.contact-link:focus,
.submit-btn:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--first-color);
    outline-offset: 2px;
}

/* ----- FOOTER SOCIAL LINKS ----- */
.footer-social-icons .icon a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.footer-social-icons .icon:hover a {
    color: var(--first-color);
}

body.dark-mode .footer-social-icons .icon a {
    color: #f5f5f5;
}

/* ----- ANIMATION FOR CARDS ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card,
.info-card {
    animation: fadeInUp 0.6s ease forwards;
}

.contact-card:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.2s;
}

.contact-card:nth-child(4) {
    animation-delay: 0.3s;
}