/* Bi' Contact Form Styles */
.bi-contact-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.bi-contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Form Messages */
.bi-form-messages {
    margin-bottom: 25px;
    display: none;
}

.bi-form-messages.show {
    display: block;
}

.bi-message {
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
}

.bi-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bi-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Form Grid */
.bi-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.bi-form-grid.bi-cols-1 {
    grid-template-columns: 1fr;
}

.bi-form-field {
    display: flex;
    flex-direction: column;
}

.bi-form-field-full {
    grid-column: 1 / -1;
}

/* Labels */
.bi-form-field label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.bi-form-field label .required {
    color: #e74c3c;
    margin-left: 2px;
}

/* Inputs & Selects */
.bi-form-field input[type="text"],
.bi-form-field input[type="email"],
.bi-form-field input[type="tel"],
.bi-form-field select,
.bi-form-field textarea {
    width: 100%;
  
    font-size: 15px;
    color: #2c3e50;
    background: #ffffff;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.bi-form-field input:focus,
.bi-form-field select:focus,
.bi-form-field textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.bi-form-field input::placeholder,
.bi-form-field textarea::placeholder {
    color: #95a5a6;
}

.bi-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='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232c3e50' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
}

.bi-form-field select:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

.bi-form-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Phone Field */
.bi-phone-wrapper {
    display: flex;
    gap: 10px;
}
.bi-phone-code {
	width: 120px !important;
	flex-shrink: 0;
}

.bi-phone-wrapper input[type="tel"] {
    flex: 1;
}

/* Honeypot */
.bi-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

/* Turnstile */
.bi-turnstile-wrapper {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

/* Submit Button */
.bi-form-submit {
    text-align: left;
}

.bi-submit-button {
    background-color: #29C2DE;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.bi-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.bi-submit-button:active {
    transform: translateY(0);
}

.bi-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.bi-button-text,
.bi-button-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bi-submit-button.loading .bi-button-text {
    display: none;
}

.bi-submit-button.loading .bi-button-loading {
    display: inline-flex;
}

/* Spinner */
.bi-spinner {
    animation: rotate 1s linear infinite;
    width: 20px;
    height: 20px;
}

.bi-spinner circle {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Validation States */
.bi-form-field input.error,
.bi-form-field select.error,
.bi-form-field textarea.error {
    border-color: #e74c3c;
}

.bi-form-field input.success,
.bi-form-field select.success {
    border-color: #27ae60;
}

/* Responsive */
@media (max-width: 768px) {
    .bi-contact-form {
        padding: 30px 20px;
    }
    
    .bi-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bi-phone-wrapper {
        flex-direction: column;
    }
    
    .bi-phone-code {
        width: 100%;
    }
    
    .bi-submit-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bi-contact-form-wrapper {
        padding: 20px 10px;
    }
    
    .bi-contact-form {
        padding: 20px 15px;
    }
    
    .bi-form-grid {
        gap: 15px;
    }
}

/* Privacy Section */

.bi-privacy-intro {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.bi-checkbox-field {
    margin-bottom: 15px;
}

.bi-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.bi-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.bi-checkbox-text {
    color: #333;
}

.bi-checkbox-text a {
    color: #29C2DE;
    text-decoration: underline;
}

.bi-checkbox-text a:hover {
    color: #29C2DE;
}

/* Mobile */
@media (max-width: 480px) {
    .bi-privacy-section {
        padding: 15px;
    }
    
    .bi-checkbox-label {
        font-size: 13px;
    }
}