/* Contact Page Styles */

/* Hero Section - Using the full-width hero component from styles.css */
/* Specific contact card styles for the contact hero */

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.contact-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-card p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-card button {
    width: 100%;
}

/* Form Section */
.contact-form-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.form-header p {
    color: #6c757d;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #27ae60;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.checkbox-group {
    margin-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
    color: #6c757d;
    position: relative;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    min-width: 20px;
    background-color: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-label:hover input ~ .checkmark {
    background-color: #e9ecef;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #27ae60;
    border-color: #27ae60;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn.btn-primary {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 2rem;
}

.btn.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
    background: linear-gradient(135deg, #219653, #27ae60);
}

.contact-info {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,192L48,176C96,160,192,128,288,138.7C384,149,480,203,576,224C672,245,768,235,864,208C960,181,1056,139,1152,138.7C1248,139,1344,181,1392,202.7L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.contact-info > * {
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.contact-info > p {
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.detail-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.detail-content {
    flex: 1;
}

.detail-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-content p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.7;
}

.detail-content a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    transition: border-color 0.2s ease;
}

.detail-content a:hover {
    border-bottom: 1px solid white;
}

.support-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin: 3rem 0;
    border-radius: 12px;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.support-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.support-card i {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.support-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.support-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.support-btn {
    background: #27ae60;
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.support-btn:hover {
    background: #229954;
}

.contact-faq {
    padding: 5rem 0;
    background: #fff;
}

.contact-faq h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section-description {
    text-align: center;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-category h3 {
    margin-bottom: 1.5rem;
    color: #27ae60;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.faq-category h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #27ae60;
}

.faq-item {
    background: white;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #2c3e50;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: #27ae60;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.faq-answer p {
    margin: 0;
    color: #6c757d;
    line-height: 1.7;
    padding: 1.5rem;
}

.regional-offices {
    padding: 5rem 0;
    background: #f8f9fa;
}

.regional-offices h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.office-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.office-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

.office-header h3 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.office-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e8f5e8;
    color: #27ae60;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.office-details {
    flex: 1;
}

.office-details p {
    color: #6c757d;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.office-details p strong {
    color: #2c3e50;
    margin-right: 0.5rem;
}

.office-contact {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-outline {
    background: transparent;
    color: #27ae60;
    border: 2px solid #27ae60;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-outline:hover {
    background: #27ae60;
    color: white;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
}

.social-links {
    margin-top: 2.5rem;
    text-align: center;
}

.social-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Emergency Contact Section */
.emergency-contact {
    padding: 5rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), 
                url('../images/emergency-bg.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.emergency-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23e74c3c" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,234.7C672,235,768,213,864,218.7C960,224,1056,256,1152,261.3C1248,267,1344,245,1392,234.7L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: 0;
}

.emergency-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(231, 76, 60, 0.15);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    border-left: 5px solid #e74c3c;
    transition: all 0.3s ease;
}

.emergency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(231, 76, 60, 0.25);
}

.emergency-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.emergency-icon::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -20px;
    right: -20px;
}

.emergency-icon::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -10px;
    left: -10px;
}

.emergency-icon i {
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.emergency-content {
    padding: 3rem;
    flex: 1;
}

.emergency-content h3 {
    color: #e74c3c;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.emergency-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #e74c3c;
}

.emergency-content p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.emergency-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.emergency-actions .btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.emergency-actions .btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.emergency-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(231, 76, 60, 0.4);
}

.emergency-actions .btn-secondary {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.emergency-actions .btn-secondary:hover {
    background: rgba(231, 76, 60, 0.1);
    transform: translateY(-3px);
}

/* Status indicator */
.emergency-content::before {
    content: '';
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 12px;
    height: 12px;
    background-color: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(46, 204, 113, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

/* Responsive CSS for the emergency agricultural support section */
@media (max-width: 992px) {
    .emergency-card {
        flex-direction: column;
        max-width: 700px;
        border-left: none;
        border-top: 5px solid #e74c3c;
    }
    
    .emergency-icon {
        padding: 2rem;
        width: 100%;
        font-size: 2.5rem;
    }
    
    .emergency-content {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .emergency-contact {
        padding: 3rem 0;
    }
    
    .emergency-actions {
        flex-direction: column;
    }
    
    .emergency-actions .btn {
        width: 100%;
    }
    
    .emergency-content h3 {
        font-size: 1.5rem;
    }
    
    .emergency-content p {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-detail {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .detail-content {
        text-align: center;
    }
    
    .offices-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero {
        padding: 100px 0 60px;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .office-card {
        padding: 1.5rem;
    }
    
    .btn.btn-primary {
        padding: 0.75rem 1.5rem;
    }
}
