/* ==========================================================================
   Delta 7 Academy — Contact Page Styles
   ========================================================================== */

/* Quick Info Strip */
.contact-quick-info {
    padding: 60px 0;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.quick-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    border-top: 4px solid var(--d7-red);
    position: relative;
    overflow: hidden;
}

.quick-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 199, 44, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quick-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(200, 16, 46, 0.15);
    border-top-color: var(--d7-gold);
}

.quick-info-card:hover::before {
    opacity: 1;
}

.qi-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--d7-red), var(--d7-dark-red));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
}

.quick-info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--d7-dark-red);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.quick-info-card p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.quick-info-card p a {
    color: var(--d7-red);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-info-card p a:hover {
    color: var(--d7-gold);
}

/* Main Contact Section */
.contact-main {
    padding: 90px 0;
    background: #fafafa;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 50px;
}

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 50px 45px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--d7-red), var(--d7-gold), var(--d7-red));
}

.form-header {
    margin-bottom: 35px;
}

.form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--d7-dark-red);
    margin-bottom: 10px;
}

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

.delta7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--d7-dark-red);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label .required {
    color: var(--d7-red);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
    transition: all 0.3s ease;
    width: 100%;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--d7-red);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
    font-family: 'Poppins', sans-serif;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c8102e' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.form-submit {
    margin-top: 10px;
    align-self: flex-start;
    background: linear-gradient(135deg, var(--d7-red), var(--d7-dark-red));
    color: #fff;
    border: none;
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 8px 25px rgba(200, 16, 46, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(200, 16, 46, 0.4);
}

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

.btn-loader {
    display: none;
}

.form-submit.loading .btn-text {
    display: none;
}

.form-submit.loading .btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-submit.loading .btn-loader::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: d7-spin 0.7s linear infinite;
}

@keyframes d7-spin {
    to { transform: rotate(360deg); }
}

.form-response {
    margin-top: 18px;
    padding: 0;
    border-radius: 10px;
    font-size: 0.95rem;
    display: none;
}

.form-response.show {
    display: block;
    padding: 15px 20px;
    animation: d7-slidein 0.4s ease;
}

.form-response.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.form-response.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

@keyframes d7-slidein {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Contact Info Sidebar */
.contact-info-card {
    background: linear-gradient(135deg, var(--d7-dark-red), var(--d7-red));
    color: #fff;
    border-radius: 20px;
    padding: 45px 35px;
    position: sticky;
    top: 100px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(200, 16, 46, 0.25);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 199, 44, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 199, 44, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--d7-gold);
    position: relative;
    z-index: 1;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    position: relative;
    z-index: 1;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .info-icon {
    width: 44px;
    height: 44px;
    background: var(--d7-gold);
    color: var(--d7-dark-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-list .info-text {
    flex: 1;
}

.info-list .info-text strong {
    display: block;
    color: var(--d7-gold);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-list .info-text span,
.info-list .info-text a {
    color: #fff;
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-list .info-text a:hover {
    color: var(--d7-gold);
}

.owner-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 22px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 199, 44, 0.3);
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

.owner-info h4 {
    color: var(--d7-gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.owner-info p {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

.social-buttons {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.social-buttons a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-buttons a:hover {
    background: var(--d7-gold);
    color: var(--d7-dark-red);
    transform: translateY(-3px);
}

/* Map Section */
.contact-map-section {
    padding: 80px 0;
    background: #fff;
}

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

.map-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--d7-dark-red);
    margin-bottom: 12px;
}

.map-header p {
    color: #666;
    font-size: 1.05rem;
}

.map-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border: 4px solid #fff;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 480px;
    border: 0;
}

.map-overlay-card {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: #fff;
    padding: 25px 28px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    max-width: 320px;
    border-left: 5px solid var(--d7-red);
}

.map-overlay-card h4 {
    font-family: 'Playfair Display', serif;
    color: var(--d7-dark-red);
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-overlay-card h4 i {
    color: var(--d7-red);
}

.map-overlay-card p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section */
.contact-faq {
    padding: 90px 0;
    background: linear-gradient(135deg, #fff8e1 0%, #fff 100%);
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header .section-tag {
    display: inline-block;
    background: var(--d7-gold);
    color: var(--d7-dark-red);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.faq-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--d7-dark-red);
    margin-bottom: 12px;
}

.faq-header p {
    color: #666;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--d7-red);
    box-shadow: 0 10px 30px rgba(200, 16, 46, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 28px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--d7-dark-red);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--d7-red);
}

.faq-question .faq-icon {
    width: 32px;
    height: 32px;
    background: #fff8e1;
    color: var(--d7-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.faq-item.active .faq-icon {
    background: var(--d7-red);
    color: #fff;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 28px;
    color: #555;
    line-height: 1.75;
    font-size: 0.98rem;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 28px 25px;
}

.faq-answer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .quick-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .contact-info-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .quick-info-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 35px 25px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-header h2 {
        font-size: 1.7rem;
    }
    .map-wrapper iframe {
        height: 350px;
    }
    .map-overlay-card {
        position: static;
        margin: -50px 20px 0;
        max-width: none;
    }
    .faq-header h2 {
        font-size: 1.9rem;
    }
    .faq-question {
        font-size: 0.98rem;
        padding: 18px 20px;
    }
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}
