/**
 * IBR Contact Page Styles
 * Template: template-contact.php
 */

/* ==========================================================================
   Page Title
   ========================================================================== */

.ibr-page-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin: 0 0 30px 0;
    padding: 0;
    text-align: center;
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.ibr-contact-page {
    background: #ffffff;
}

.ibr-contact-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Contact Grid
   ========================================================================== */

.ibr-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.ibr-contact-form-wrapper,
.ibr-contact-info-wrapper {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 30px;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */

.ibr-section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ibr-section-icon {
    font-size: 24px;
    display: inline-block;
    color: #666;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */

.ibr-contact-form {
    width: 100%;
}

.ibr-contact-form input[type="text"],
.ibr-contact-form input[type="email"],
.ibr-contact-form input[type="tel"],
.ibr-contact-form textarea,
.ibr-contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    margin-bottom: 15px;
}

.ibr-contact-form input:focus,
.ibr-contact-form textarea:focus,
.ibr-contact-form select:focus {
    outline: none;
    border-color: #999;
}

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

.ibr-contact-form button[type="submit"],
.ibr-contact-form input[type="submit"] {
    background: var(--color-primary, #333);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.ibr-contact-form button[type="submit"]:hover,
.ibr-contact-form input[type="submit"]:hover {
    background: #555;
}

/* ==========================================================================
   Contact Info Items
   ========================================================================== */

.ibr-contact-info {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
}

.ibr-info-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ibr-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #666;
    border-radius: 3px;
}

.ibr-info-icon svg {
    width: 24px;
    height: 24px;
}

.ibr-info-content {
    flex: 1;
}

.ibr-info-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    text-align: left;
}

.ibr-info-content p {
    margin: 0;
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    text-align: left;
}

.ibr-info-content a {
    color: #333;
    text-decoration: none;
}

.ibr-info-content a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Social Links
   ========================================================================== */

.ibr-social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.ibr-social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 3px;
    color: #666;
    text-decoration: none;
}

.ibr-social-links a:hover {
    background: #e0e0e0;
    color: #333;
}

.ibr-social-links svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Map Section
   ========================================================================== */

.ibr-contact-map-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
}

.ibr-map-wrapper {
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.ibr-map-wrapper iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

/* ==========================================================================
   Notice
   ========================================================================== */

.ibr-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 16px 20px;
    color: #856404;
    font-size: 15px;
    margin: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .ibr-contact-grid {
        gap: 25px;
    }

    .ibr-contact-form-wrapper,
    .ibr-contact-info-wrapper,
    .ibr-contact-map-section {
        padding: 25px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .ibr-page-title {
        font-size: 28px;
        margin: 0 0 25px 0;
    }
    
    .ibr-contact-content {
        padding: 30px 15px;
    }
    
    .ibr-contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
    }
    
    .ibr-contact-info-wrapper {
        order: -1;
    }
    
    .ibr-contact-form-wrapper {
        order: 1;
    }    .ibr-contact-form-wrapper,
    .ibr-contact-info-wrapper,
    .ibr-contact-map-section {
        padding: 25px;
    }

    .ibr-section-title {
        font-size: 20px;
    }

    .ibr-info-item {
        padding: 16px;
    }

    .ibr-map-wrapper iframe {
        height: 350px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .ibr-page-title {
        font-size: 24px;
        margin: 0 0 20px 0;
    }

    .ibr-contact-content {
        padding: 20px 15px;
    }

    .ibr-section-title {
        font-size: 18px;
        gap: 8px;
    }

    .ibr-section-icon {
        font-size: 24px;
    }

    .ibr-contact-form-wrapper,
    .ibr-contact-info-wrapper,
    .ibr-contact-map-section {
        padding: 20px;
        border-radius: 8px;
    }

    .ibr-info-icon {
        width: 40px;
        height: 40px;
    }

    .ibr-info-icon svg {
        width: 20px;
        height: 20px;
    }

    .ibr-social-links a {
        width: 40px;
        height: 40px;
    }

    .ibr-map-wrapper iframe {
        height: 300px;
    }

    .ibr-contact-form button[type="submit"],
    .ibr-contact-form input[type="submit"] {
        padding: 14px 30px;
        font-size: 16px;
    }
}