/* ==========================================
   GITZ GREEN ENERGY - CONTACT PAGE
   Premium Contact Form Styling
   ========================================== */

/* === CONTACT HERO === */
.contact-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0 80px;
}

.contact-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.contact-hero .hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* === CONTACT CARDS === */
.contact-cards-section {
    padding: 80px 0;
    background: white;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    animation: slideUp 0.6s ease-out backwards;
}

.contact-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-card:nth-child(4) {
    animation-delay: 0.4s;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
    transition: all 0.4s ease;
}

.card-icon.green {
    background: var(--gradient-nature);
}

.card-icon.orange {
    background: var(--gradient-solar);
}

.card-icon.blue {
    background: var(--gradient-electric);
}

.contact-card:hover .card-icon {
    transform: rotateY(360deg);
}

.contact-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--charcoal);
}

.contact-card p {
    color: var(--slate);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.contact-link {
    color: var(--emerald-green);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    transform: translateX(5px);
}

/* === CONTACT FORM SECTION === */
.contact-form-section {
    padding: 100px 0;
    background: var(--mint-light);
}

.form-wrapper {
    max-width: 900px;
    margin: 50px auto 0;
}

.main-contact-form {
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: var(--shadow-xl);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #F0F0F0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--emerald-green);
    font-size: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-field {
    margin-bottom: 25px;
}

.form-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--charcoal);
    font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--emerald-green);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #94A3B8;
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Character Counter */
.char-counter {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--slate);
    text-align: right;
}

.char-counter.warning {
    color: var(--solar-orange);
    font-weight: 600;
}

.char-counter.error {
    color: #EF4444;
    font-weight: 700;
}

/* === DYNAMIC FIELDS === */
.dynamic-fields {
    margin-top: 25px;
    overflow: hidden;
}

.dynamic-fields.show {
    animation: slideDown 0.4s ease-out;
}

.dynamic-field {
    animation: fadeIn 0.3s ease-out;
}

/* === CHECKBOX GROUP === */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: 15px;
    cursor: pointer;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checkbox-label:hover {
    background: #E8F5E9;
    border-color: var(--emerald-green);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #CBD5E0;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-label input[type="checkbox"]:checked~.checkbox-custom {
    background: var(--gradient-nature);
    border-color: var(--emerald-green);
}

.checkbox-label input[type="checkbox"]:checked~.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.checkbox-text {
    flex: 1;
}

.checkbox-text strong {
    display: block;
    font-size: 1.05rem;
    color: var(--charcoal);
    margin-bottom: 5px;
}

.checkbox-text small {
    display: block;
    color: var(--slate);
    font-size: 0.9rem;
}

.consent-note {
    margin-top: 15px;
    padding: 12px;
    background: #FFF7ED;
    border-left: 4px solid var(--solar-orange);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 10px;
}

.consent-note i {
    color: var(--solar-orange);
    font-size: 1.1rem;
}

/* === SUBMIT SECTION === */
.submit-section {
    margin-top: 40px;
    text-align: center;
}

.submit-btn {
    background: var(--gradient-nature);
    color: white;
    padding: 20px 60px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.privacy-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--slate);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.privacy-note i {
    color: var(--emerald-green);
}

/* === ERROR STATES === */
.form-field.error input,
.form-field.error select,
.form-field.error textarea {
    border-color: #EF4444;
    background: #FEF2F2;
}

.error-msg {
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.error-msg::before {
    content: '⚠';
    font-size: 1rem;
}

/* === SUCCESS STATES === */
.form-field.success input,
.form-field.success select {
    border-color: #10B981;
    background: #F0FDF4;
}

/* === LOCATION SECTION === */
.location-section {
    padding: 100px 0;
    background: white;
}

.location-content {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: start;
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-icon.green {
    background: var(--gradient-nature);
}

.info-icon.orange {
    background: var(--gradient-solar);
}

.info-icon.blue {
    background: var(--gradient-electric);
}

.info-item h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.info-item p {
    color: var(--slate);
    line-height: 1.8;
}

.map-container {
    background: var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

.map-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--slate);
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--emerald-green);
}

.map-placeholder p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* === ANIMATIONS === */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 1000px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 968px) {
    .contact-hero .hero-title {
        font-size: 2.8rem;
    }

    .contact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .main-contact-form {
        padding: 40px 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .location-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .contact-hero {
        min-height: 60vh;
        padding: 120px 0 60px;
    }

    .contact-hero .hero-title {
        font-size: 2.2rem;
    }

    .contact-hero .hero-subtitle {
        font-size: 1rem;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .main-contact-form {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .form-row {
        gap: 15px;
    }

    .form-field {
        margin-bottom: 20px;
    }

    .submit-btn {
        width: 100%;
        padding: 18px 40px;
        font-size: 1.1rem;
    }

    .checkbox-label {
        padding: 15px;
    }

    .checkbox-text strong {
        font-size: 0.95rem;
    }

    .checkbox-text small {
        font-size: 0.85rem;
    }
}