/* ===================================================
   STANDARD ZONE TECHNOLOGIES - CONTACT PAGE STYLES
   =================================================== */

/* ===================== CONTACT INFO CARDS ===================== */
.contact-info-section {
    position: relative;
}

.contact-info-card {
    background: var(--white);
    padding: 45px 30px;
    border-radius: 22px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 220px;
    height: 220px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.05;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.contact-info-card:hover::before {
    transform: scale(2);
    opacity: 0.1;
}

.ci-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
    margin: 0 auto 25px;
    box-shadow: 0 10px 25px rgba(13, 71, 161, 0.35);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.contact-info-card:hover .ci-icon {
    background: var(--gradient-accent);
    box-shadow: 0 10px 25px rgba(255, 111, 0, 0.4);
    transform: rotateY(360deg);
}

.contact-info-card h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.contact-info-card > p {
    color: var(--text-light);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.ci-link {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 6px 0;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.ci-link:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.ci-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.ci-social a {
    width: 42px;
    height: 42px;
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
}

.ci-social a:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 8px 18px rgba(13, 71, 161, 0.4);
}

/* ===================== CONTACT FORM ===================== */
.contact-form-section {
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 45px 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.cfw-header {
    margin-bottom: 30px;
}

.cfw-header h3 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark-color);
    margin: 10px 0 12px;
    line-height: 1.3;
}

.cfw-header p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.contact-form .form-group {
    margin-bottom: 5px;
}

.contact-form label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.required {
    color: #e53935;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
    transition: var(--transition);
}

.textarea-icon {
    top: 20px;
    transform: none;
}

.contact-form .form-control {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14.5px;
    color: var(--dark-color);
    background-color: #fafbfc;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.08);
}

.contact-form .form-control:focus + .invalid-feedback,
.contact-form .input-wrapper:focus-within .input-icon {
    color: var(--primary-color);
}

.contact-form .form-control::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 130px;
    padding-top: 18px;
}

.contact-form .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
    padding-right: 45px;
    cursor: pointer;
}

.contact-form .form-control.is-invalid {
    border-color: #e53935;
    background-color: #fff5f5;
}

.contact-form .form-control.is-invalid + .invalid-feedback {
    display: block;
}

.invalid-feedback {
    display: none;
    color: #e53935;
    font-size: 12.5px;
    margin-top: 6px;
    font-weight: 500;
}

/* Checkbox */
.form-check-custom {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-custom .form-check-input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    border: 2px solid #d1d5db;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.form-check-custom .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-custom .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.15);
}

.form-check-custom .form-check-label {
    font-size: 13.5px;
    color: var(--text-dark);
    line-height: 1.6;
    cursor: pointer;
}

.form-check-custom .form-check-label a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.form-check-custom .form-check-label a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Form Alert */
#formAlert {
    border-radius: 12px;
    border: none;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

#formAlert.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

#formAlert.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Spinner inside button */
.spinner-border-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* ===================== QUICK CONTACT CARD ===================== */
.quick-contact-card,
.office-hours-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.quick-contact-card {
    background: var(--gradient-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.quick-contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 111, 0, 0.15) 0%, transparent 70%);
}

.quick-contact-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(25, 118, 210, 0.2) 0%, transparent 70%);
}

.qcc-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.qcc-header i {
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    box-shadow: 0 6px 15px rgba(255, 111, 0, 0.4);
}

.qcc-header h4 {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.quick-contact-card > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.qcc-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.qcc-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(6px);
    border-color: rgba(255, 255, 255, 0.25);
}

.qcc-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
    transition: var(--transition);
}

.qcc-item:hover .qcc-icon {
    background: var(--gradient-accent);
    transform: scale(1.1);
}

.qcc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.qcc-info span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.qcc-info a {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qcc-info a:hover {
    color: #ffd54f;
}

/* ===================== OFFICE HOURS CARD ===================== */
.office-hours-card {
    background: var(--white);
}

.ohc-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f0f4f8;
}

.ohc-header i {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    box-shadow: 0 6px 15px rgba(13, 71, 161, 0.35);
}

.ohc-header h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.ohc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.ohc-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #e9ecef;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14.5px;
}

.ohc-list li:last-child {
    border-bottom: none;
}

.ohc-time {
    color: var(--primary-color);
    font-weight: 700;
}

.ohc-closed {
    color: #e53935;
    font-weight: 700;
}

.ohc-emergency {
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.08) 0%, rgba(255, 167, 38, 0.08) 100%);
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.ohc-emergency i {
    color: var(--accent-color);
    font-size: 20px;
    flex-shrink: 0;
}

.ohc-emergency span {
    font-size: 13.5px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

/* ===================== OFFICE LOCATIONS ===================== */
.office-locations-section {
    position: relative;
}

.office-card {
    background: var(--white);
    border-radius: 25px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    height: 100%;
}

.office-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.office-card-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 35px 30px;
    position: relative;
    overflow: hidden;
}

.office-card-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.office-card-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.oc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.oc-badge-secondary {
    background: rgba(255, 111, 0, 0.25);
    border-color: rgba(255, 111, 0, 0.5);
}

.oc-badge i {
    font-size: 14px;
}

.office-card-header h3 {
    color: var(--white);
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}

.oc-state {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14.5px;
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.office-card-body {
    padding: 30px;
}

.oc-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.oc-info-item i {
    width: 42px;
    height: 42px;
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: var(--transition);
}

.office-card:hover .oc-info-item i {
    background: var(--gradient-primary);
    color: var(--white);
}

.oc-info-item strong {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

.oc-info-item p {
    color: var(--dark-color);
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.oc-map {
    margin-top: 22px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
}

.oc-map iframe {
    display: block;
    transition: var(--transition);
}

.oc-direction-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 6px 15px rgba(13, 71, 161, 0.3);
}

.oc-direction-btn:hover {
    background: var(--gradient-accent);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(255, 111, 0, 0.4);
}

/* ===================== RESPONSIVE STYLES ===================== */
@media (max-width: 991px) {
    .contact-info-card {
        padding: 38px 25px;
    }

    .ci-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .contact-info-card h4 {
        font-size: 20px;
    }

    .contact-form-wrapper {
        padding: 40px 30px;
    }

    .cfw-header h3 {
        font-size: 28px;
    }

    .quick-contact-card,
    .office-hours-card {
        padding: 30px 25px;
    }

    .office-card-header {
        padding: 30px 25px;
    }

    .office-card-header h3 {
        font-size: 32px;
    }

    .office-card-body {
        padding: 25px;
    }
}

@media (max-width: 767px) {
    .contact-info-card {
        padding: 35px 22px;
    }

    .ci-icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
        border-radius: 18px;
    }

    .contact-info-card h4 {
        font-size: 18px;
    }

    .ci-social a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .contact-form-wrapper {
        padding: 35px 25px;
    }

    .cfw-header h3 {
        font-size: 24px;
    }

    .cfw-header p {
        font-size: 14px;
    }

    .contact-form .form-control {
        padding: 12px 16px 12px 44px;
        font-size: 14px;
    }

    .input-icon {
        left: 16px;
        font-size: 15px;
    }

    .quick-contact-card,
    .office-hours-card {
        padding: 28px 22px;
    }

    .qcc-header h4,
    .ohc-header h4 {
        font-size: 20px;
    }

    .qcc-header i,
    .ohc-header i {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .qcc-item {
        padding: 12px;
        gap: 12px;
    }

    .qcc-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .qcc-info a {
        font-size: 14px;
    }

    .ohc-list li {
        font-size: 13.5px;
        padding: 10px 0;
    }

    .ohc-emergency span {
        font-size: 12.5px;
    }

    .office-card-header {
        padding: 28px 22px;
    }

    .office-card-header h3 {
        font-size: 28px;
    }

    .office-card-body {
        padding: 22px;
    }

    .oc-info-item i {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 10px;
    }

    .oc-info-item p {
        font-size: 14px;
    }

    .oc-map iframe {
        height: 200px !important;
    }
}

@media (max-width: 575px) {
    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .cfw-header h3 {
        font-size: 22px;
    }

    .form-check-custom .form-check-label {
        font-size: 12.5px;
    }

    .office-card-header h3 {
        font-size: 26px;
    }

    .oc-info-item {
        gap: 12px;
        margin-bottom: 15px;
    }

    .oc-direction-btn {
        width: 100%;
        justify-content: center;
    }

    .qcc-info a {
        font-size: 13.5px;
    }
}