/**
 * Contact Page Styles
 * Professional contact page with clean design
 * All classes prefixed with 'cosmick-contact-' to avoid conflicts
 *
 * @package Cosmick_Media_Project_Theme
 */

/* ========================================
   Contact Page Styles
========================================== */

/* Main Container */
.cosmick-contact-page {
    background: #f8f9fa;
    min-height: 100vh;
    margin-bottom: 200px;
}

/* Page Header */
.cosmick-contact-header {
    background: white;
    padding: 60px 0 40px;
    border-bottom: 1px solid #e5e5e5;
}

.cosmick-contact-header-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cosmick-contact-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2d1839;
    margin-bottom: 20px;
}

.cosmick-contact-header p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Main Content */
.cosmick-contact-main {
    padding: 80px 0;
}

/* Contact Form Section */
.cosmick-contact-form-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
    height: fit-content;
}

.cosmick-contact-form-header {
    margin-bottom: 30px;
}

.cosmick-contact-form-header h2 {
    color: #2d1839;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

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

/* Gravity Forms Styling */
.cosmick-contact-form-wrapper .gform_wrapper {
    max-width: 100%;
}

.cosmick-contact-form-wrapper .gform_wrapper .gform_body {
    background: transparent;
}

.cosmick-contact-form-wrapper .gform_wrapper .gfield {
    margin-bottom: 25px;
}

/* Checkbox fieldset - add extra spacing */
.cosmick-contact-form-wrapper .gform_wrapper fieldset.gfield {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.cosmick-contact-form-wrapper .gform_wrapper .gfield_label,
.cosmick-contact-form-wrapper .gform_wrapper legend.gfield_label {
    font-weight: 600;
    color: #2d1839;
    margin-bottom: 15px;
    font-size: 1rem;
    display: block;
}

.cosmick-contact-form-wrapper .gform_wrapper input[type="text"],
.cosmick-contact-form-wrapper .gform_wrapper input[type="email"],
.cosmick-contact-form-wrapper .gform_wrapper input[type="tel"],
.cosmick-contact-form-wrapper .gform_wrapper textarea,
.cosmick-contact-form-wrapper .gform_wrapper select {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.cosmick-contact-form-wrapper .gform_wrapper input:focus,
.cosmick-contact-form-wrapper .gform_wrapper textarea:focus,
.cosmick-contact-form-wrapper .gform_wrapper select:focus {
    border-color: #ff675b;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 103, 91, 0.1);
    outline: none;
}

/* Custom Checkbox Styling */
.cosmick-contact-form-wrapper .gform_wrapper .gfield_checkbox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.cosmick-contact-form-wrapper .gform_wrapper .gchoice {
    margin: 0 !important;
    padding: 0;
}

.cosmick-contact-form-wrapper .gform_wrapper .gfield_checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.cosmick-contact-form-wrapper .gform_wrapper .gfield_checkbox label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    display: inline-block;
    color: #2d1839;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    user-select: none;
    transition: color 0.3s ease;
}

/* Custom checkbox */
.cosmick-contact-form-wrapper .gform_wrapper .gfield_checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
}

/* Checkmark */
.cosmick-contact-form-wrapper .gform_wrapper .gfield_checkbox label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Hover state */
.cosmick-contact-form-wrapper .gform_wrapper .gfield_checkbox label:hover::before {
    border-color: #ff675b;
    background: #fff5f4;
}

/* Checked state */
.cosmick-contact-form-wrapper .gform_wrapper .gfield_checkbox input[type="checkbox"]:checked + label::before {
    background: #ff675b;
    border-color: #ff675b;
}

.cosmick-contact-form-wrapper .gform_wrapper .gfield_checkbox input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.cosmick-contact-form-wrapper .gform_wrapper .gfield_checkbox input[type="checkbox"]:checked + label {
    color: #ff675b;
}

/* Focus state for accessibility */
.cosmick-contact-form-wrapper .gform_wrapper .gfield_checkbox input[type="checkbox"]:focus + label::before {
    box-shadow: 0 0 0 3px rgba(255, 103, 91, 0.2);
}

/* Form Section Spacing */
.cosmick-contact-form-wrapper .gform_wrapper .gfield.gfield--width-half:nth-of-type(2),
.cosmick-contact-form-wrapper .gform_wrapper .gfield.gfield--width-half:nth-of-type(4) {
    margin-top: 0;
}

.cosmick-contact-form-wrapper .gform_wrapper .gfield.gfield--width-half:nth-of-type(3) {
    margin-top: 35px;
}

.cosmick-contact-form-wrapper .gform_wrapper .gfield.gfield--type-textarea {
    margin-top: 35px;
}

.cosmick-contact-form-wrapper .gform_wrapper .gform_footer {
    margin-top: 35px;
    padding: 0;
}

.cosmick-contact-form-wrapper .gform_wrapper .gform_footer input[type="submit"] {
    background: #ff675b;
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.cosmick-contact-form-wrapper .gform_wrapper .gform_footer input[type="submit"]:hover {
    background: #e55a4e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 91, 0.3);
}

/* Contact Information Section */
.cosmick-contact-info-section {
    padding-left: 40px;
}

.cosmick-contact-info-block {
    margin-bottom: 45px;
}

.cosmick-contact-info-block h3 {
    color: #2d1839;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cosmick-contact-info-block p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Contact Info Items */
.cosmick-contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cosmick-contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cosmick-contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff675b, #f2675d);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cosmick-contact-info-content {
    display: flex;
    flex-direction: column;
}

.cosmick-contact-info-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 3px;
}

.cosmick-contact-info-value {
    font-size: 1.1rem;
    color: #2d1839;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cosmick-contact-info-value:hover {
    color: #ff675b;
}

/* Office Hours */
.cosmick-office-hours {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cosmick-office-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cosmick-office-hours-item:last-child {
    border-bottom: none;
}

.cosmick-office-days {
    font-weight: 600;
    color: #2d1839;
}

.cosmick-office-time {
    color: #666;
    font-weight: 500;
}

/* Process Steps */
.cosmick-process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cosmick-process-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.cosmick-process-number {
    width: 35px;
    height: 35px;
    background: #ff675b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 3px;
}

.cosmick-process-content h4 {
    color: #2d1839;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
}

.cosmick-process-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Social Media Links */
.cosmick-social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cosmick-social-link {
    width: 50px;
    height: 50px;
    background: #ff675b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cosmick-social-link:hover {
    background: #e55a4e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 103, 91, 0.3);
    color: white;
}

/* Map Section */
.cosmick-contact-map {
    background: white;
    padding: 80px 0;
    border-top: 1px solid #e5e5e5;
}

.cosmick-contact-map-header {
    text-align: center;
    margin-bottom: 50px;
}

.cosmick-contact-map-header h2 {
    color: #2d1839;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cosmick-contact-map-header p {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

.cosmick-contact-map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid #e5e5e5;
}

.cosmick-contact-map-iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Benefits Section */
.cosmick-contact-benefits {
    background: white;
    padding: 80px 0;
    border-top: 1px solid #e5e5e5;
}

.cosmick-contact-benefits-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cosmick-contact-benefits-header h2 {
    color: #2d1839;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cosmick-contact-benefits-header p {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
}

.cosmick-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.cosmick-benefit-item {
    text-align: center;
    padding: 30px 20px;
}

.cosmick-benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff675b, #f2675d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.cosmick-benefit-item h4 {
    color: #2d1839;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cosmick-benefit-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Call to Action */
.cosmick-contact-cta {
    background: linear-gradient(135deg, #ff675b 0%, #ff8a7a 100%);
    color: white;
    padding: 80px 0 300px 0;
    margin-bottom: -500px;
}

.cosmick-contact-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cosmick-contact-cta h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cosmick-contact-cta p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cosmick-contact-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cosmick-contact-cta-btn {
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    justify-content: center;
}

.cosmick-contact-cta-btn.primary {
    background: white;
    color: #2d1839;
    border: 2px solid white;
}

.cosmick-contact-cta-btn.primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.cosmick-contact-cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cosmick-contact-cta-btn.secondary:hover {
    background: white;
    color: #2d1839;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .cosmick-contact-info-section {
        padding-left: 0;
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    .cosmick-contact-header h1 {
        font-size: 2.5rem;
    }

    .cosmick-contact-form-section {
        padding: 30px 25px;
    }

    .cosmick-contact-main {
        padding: 60px 0;
    }

    .cosmick-contact-benefits {
        padding: 60px 0;
    }

    .cosmick-contact-map,
    .cosmick-contact-cta {
        padding: 60px 0;
    }

    .cosmick-contact-benefits-header h2,
    .cosmick-contact-map-header h2,
    .cosmick-contact-cta h2 {
        font-size: 2rem;
    }

    .cosmick-benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cosmick-contact-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cosmick-contact-cta-btn {
        width: 100%;
        max-width: 300px;
    }

    /* Make checkboxes single column on mobile */
    .cosmick-contact-form-wrapper .gform_wrapper .gfield_checkbox {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .cosmick-contact-header {
        padding: 40px 0 30px;
    }

    .cosmick-contact-header h1 {
        font-size: 2rem;
    }

    .cosmick-contact-form-section {
        padding: 25px 20px;
    }

    .cosmick-contact-main {
        padding: 40px 0;
    }

    .cosmick-contact-map-iframe {
        height: 300px;
    }

    .cosmick-office-hours-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    /* Reduce checkbox fieldset padding on small screens */
    .cosmick-contact-form-wrapper .gform_wrapper fieldset.gfield {
        padding: 20px 15px;
    }
}