/* =====================
   45. iOS-STYLE CONTACT FORM
   Clean, minimal design with grays and strategic orange accents
===================== */

/* ===== LAYOUT & CONTAINER ===== */
.bcg-contact-wrapper {
    background: #ffffff;
    padding: 60px 0;
}

.bcg-contact-wrapper .row {
    --bs-gutter-x: 2rem;
}

/* ===== LEFT COLUMN - COMPANY INFO ===== */
.bcg-company-info {
    background: #F9F9F9;
    border-radius: 16px;
    padding: 40px 32px;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bcg-company-info:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.company-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #86868B;
    margin: 0 0 32px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #E8E8ED;
}

.company-section {
    margin-bottom: 28px;
}

.company-section:last-of-type {
    margin-bottom: 0;
}

.company-section h4 {
    font-size: 17px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
}

.company-address {
    font-size: 15px;
    line-height: 1.6;
    color: #1D1D1F;
    margin: 0;
}

.company-detail {
    font-size: 14px;
    line-height: 1.8;
    color: #1D1D1F;
    margin: 4px 0;
}

.company-detail strong {
    font-weight: 600;
    color: #86868B;
    min-width: 80px;
    display: inline-block;
}

/* Contact Items */
.company-contact {
    padding-top: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0;
    padding: 6px;

}



.contact-icon {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.contact-icon img.emoji {
    width: 20px;
    height: 20px;
}

.contact-item a {
    font-size: 15px;
    font-weight: 500;
    color: #1D1D1F;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:hover a {
    color: #F7A736;
}

/* Legal Info */
.company-legal {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E8E8ED;
}

.company-legal p {
    font-size: 12px;
    line-height: 1.7;
    color: #86868B;
    margin: 0;
}

/* ===== RIGHT COLUMN - FORM ===== */
.bcg-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Form Messages */
.bcg-form-messages {
    margin-bottom: 24px;
}

.bcg-form-messages .alert {
    border-radius: 10px;
    border: none;
    font-size: 14px;
    padding: 14px 18px;
}

.bcg-form-messages .alert-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.bcg-form-messages .alert-danger {
    background: #FFEBEE;
    color: #C62828;
}

/* Form Fields */
.bcg-form-fields {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0;
}

.bcg-field-wrapper {
    margin-bottom: 20px;
}

/* Labels */
.bcg-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1D1D1F !important;
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}

.bcg-form .form-label .required {
    color: #F7A736;
    margin-left: 2px;
    font-weight: 700;
}

/* Inputs, Textareas, Selects */
.bcg-form .form-control,
.bcg-form .form-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #1D1D1F;
    background: #F9F9F9;
    border: 2px solid #D2D2D7;
    border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    appearance: none;
}

.bcg-form .form-control::placeholder {
    color: #86868B;
    opacity: 0.8;
}

/* Hover State */
.bcg-form .form-control:hover:not(:focus),
.bcg-form .form-select:hover:not(:focus) {
    background: #F5F5F7;
    border-color: #86868B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

/* Focus State - Orange Border Animated */
.bcg-form .form-control:focus,
.bcg-form .form-select:focus {
    background: #ffffff;
    border-color: #F7A736;
    box-shadow: 0 4px 16px rgba(247, 167, 54, 0.12),
        0 0 0 4px rgba(247, 167, 54, 0.08);
    transform: translateY(-1px);
}

/* Select Arrow */
.bcg-form .form-select {
    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='%2386868B' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 40px;
}

/* Textarea */
.bcg-form textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* File Input */
.bcg-form input[type="file"].form-control {
    padding: 12px 14px;
    cursor: pointer;
}

.bcg-form input[type="file"].form-control::-webkit-file-upload-button {
    padding: 8px 16px;
    margin-right: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1D1D1F;
    background: #E8E8ED;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bcg-form input[type="file"].form-control::-webkit-file-upload-button:hover {
    background: #D2D2D7;
}

.bcg-form .form-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #86868B;
    line-height: 1.5;
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    font-size: 12px;
    color: #C62828;
    margin-top: 6px;
    line-height: 1.4;
}

.bcg-field-wrapper.is-invalid .invalid-feedback {
    display: block;
}

.bcg-field-wrapper.is-invalid .form-control,
.bcg-field-wrapper.is-invalid .form-select {
    border-color: #EF5350;
    background: #FFEBEE;
}

/* ===== SUBMIT BUTTON ===== */
.bcg-form-actions {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.bcg-submit-btn {
    position: relative;
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 600;
    color: #1D1D1F;
    background: transparent;
    border: 2px solid #1D1D1F;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
}

.bcg-submit-btn:hover {
    color: #ffffff;
    background: #F7A736;
    border-color: #F7A736;
    box-shadow: 0 4px 16px rgba(247, 167, 54, 0.25);
}

.bcg-submit-btn:active {
    transform: scale(0.98);
}

.bcg-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-text,
.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bcg-submit-btn .btn-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .bcg-company-info {
        margin-bottom: 32px;
    }

    .bcg-form,
    .bcg-company-info {
        padding: 32px 24px;
    }
}

@media (max-width: 767px) {
    .bcg-contact-wrapper {
        padding: 40px 0;
    }

    .bcg-form,
    .bcg-company-info {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .company-title {
        font-size: 12px;
        margin-bottom: 24px;
    }

    .bcg-form-fields [class*="col-md-"] {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .bcg-submit-btn {
        width: 100%;
        justify-content: center;
    }

    .bcg-form-actions {
        justify-content: stretch;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bcg-field-wrapper {
    animation: fadeInUp 0.4s ease backwards;
}

.bcg-field-wrapper:nth-child(1) {
    animation-delay: 0.05s;
}

.bcg-field-wrapper:nth-child(2) {
    animation-delay: 0.1s;
}

.bcg-field-wrapper:nth-child(3) {
    animation-delay: 0.15s;
}

.bcg-field-wrapper:nth-child(4) {
    animation-delay: 0.2s;
}

.bcg-field-wrapper:nth-child(5) {
    animation-delay: 0.25s;
}

.bcg-field-wrapper:nth-child(6) {
    animation-delay: 0.3s;
}

/* ===== B2B REGISTRATION FORM - SPECIFIC STYLES ===== */

/* B2B Form Layout - Two Column */
.bcg-form--b2b-registration .bcg-form-fields--b2b {
    --bs-gutter-x: 2rem;
}

/* Fieldsets for Form Sections */
.bcg-fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.bcg-fieldset-legend {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #86868B;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #E8E8ED;
    width: 100%;
}

/* Checkbox Toggle for Shipping Address */
.bcg-shipping-toggle {
    background: #F9F9F9;
    border-radius: 10px;
    padding: 16px 20px;
    border: 2px solid #E8E8ED;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bcg-shipping-toggle:hover {
    background: #F5F5F7;
    border-color: #D2D2D7;
}

.bcg-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #1D1D1F;
}

.bcg-checkbox-input {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #D2D2D7;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.bcg-checkbox-input:hover {
    border-color: #86868B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.bcg-checkbox-input:checked {
    background: #F7A736;
    border-color: #F7A736;
}

.bcg-checkbox-input:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.bcg-checkbox-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(247, 167, 54, 0.15);
}

.bcg-checkbox-text {
    line-height: 1.4;
}

/* Shipping Section Slide Animation */
.bcg-fieldset--shipping {
    overflow: visible;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== VALIDATION STYLES ===== */

/* Invalid State for Fields */
.bcg-field-wrapper.is-invalid .form-control,
.bcg-field-wrapper.is-invalid .form-select {
    border-color: #EF5350;
    background: #FFEBEE;
    box-shadow: 0 0 0 4px rgba(239, 83, 80, 0.08);
}

.bcg-field-wrapper.is-invalid .form-control:focus,
.bcg-field-wrapper.is-invalid .form-select:focus {
    border-color: #EF5350;
    box-shadow: 0 4px 16px rgba(239, 83, 80, 0.15),
        0 0 0 4px rgba(239, 83, 80, 0.12);
}

/* Invalid Feedback - Enhanced */
.bcg-field-wrapper .invalid-feedback {
    display: none;
    font-size: 12px;
    color: #C62828;
    margin-top: 6px;
    line-height: 1.4;
    font-weight: 500;
}

.bcg-field-wrapper.is-invalid .invalid-feedback {
    display: block;
    animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Validation Tooltip (for inline errors) */
.bcg-validation-tooltip {
    position: absolute;
    left: 0;
    bottom: 100%;
    margin-bottom: 8px;
    background: #C62828;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bcg-validation-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 16px;
    border: 6px solid transparent;
    border-top-color: #C62828;
}

.bcg-validation-tooltip--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Success State (optional for future use) */
.bcg-field-wrapper.is-valid .form-control,
.bcg-field-wrapper.is-valid .form-select {
    border-color: #66BB6A;
    background: #E8F5E9;
}

/* ===== RESPONSIVE - B2B FORM ===== */
@media (max-width: 991px) {
    .bcg-form--b2b-registration .bcg-form-fields--b2b {
        --bs-gutter-x: 1.5rem;
    }

    .bcg-form--b2b-registration .col-lg-6 {
        margin-bottom: 24px;
    }

    .bcg-form--b2b-registration .col-lg-6:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .bcg-fieldset-legend {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .bcg-shipping-toggle {
        padding: 14px 16px;
    }

    .bcg-checkbox-label {
        font-size: 14px;
    }

    .bcg-validation-tooltip {
        white-space: normal;
        max-width: 280px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HONEYPOT ANTI-SPAM ===== */
.bcg-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
