/**
 * BSL Contact Form - Clean CSS
 * No Tilda dependencies, simple and straightforward
 */

/* ============================================
   FORM SECTION
   ============================================ */

/* Main form section with background image */
#rec76993896.contact-form-section,
.contact-form-section {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0px 0 0 0 !important;
    padding: 0 !important;
    position: static !important;
    overflow: visible !important;
}

#rec76993896 .contact-form-bg,
.contact-form-bg {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 600px !important;
    padding: 80px 0 !important;
    margin: 0 !important;
    background-color: #304658 !important;
    background-image: linear-gradient(rgba(48, 70, 88, 0.85), rgb(0 0 0 / 0%)), url(https://static.tildacdn.net/tild3239-3935-4933-b539-643337326635/robin-spielmann-5936.jpg) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    position: relative !important;
    overflow: visible !important;
}

.bsl-contact-form-section {
    background: linear-gradient(135deg, #304658 0%, #1f5bff 100%);
    padding: 80px 0;
    position: relative;
}

.bsl-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bsl-form-content {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Form Header */
.bsl-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.bsl-form-title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.bsl-form-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
}

/* Success Message */
.bsl-form-success {
    background: rgba(46, 213, 115, 0.2);
    border: 2px solid rgba(46, 213, 115, 0.6);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
}

.bsl-success-icon {
    width: 48px;
    height: 48px;
    color: #2ed573;
    margin-bottom: 16px;
}

.bsl-form-success p {
    font-size: 18px;
    margin: 0;
    line-height: 1.6;
}

/* Form Grid */
.bsl-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 0px;
}

.bsl-form-field {
    position: relative;
}

.bsl-field-full {
    grid-column: 1 / -1;
}

/* Inputs & Textarea */
.bsl-input,
.bsl-select,
.bsl-textarea {
    width: 100%;
    padding: 18px 22px;
    font-size: 16px;
    font-family: inherit;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.bsl-input::placeholder,
.bsl-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.bsl-input:focus,
.bsl-select:focus,
.bsl-textarea:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Select Dropdown */
.bsl-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
    padding-right: 50px;
    cursor: pointer;
}

.bsl-select option {
    background: #2c3e50;
    color: #ffffff;
    padding: 10px;
}

/* Textarea */
.bsl-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Error State */
.bsl-input-error,
.bsl-input-error:focus {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2) !important;
}

.bsl-field-error {
    display: none;
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 6px;
}

/* Submit Button */
.bsl-form-submit {
    text-align: center;
    margin-bottom: 20px;
}

.bsl-submit-btn {
    padding: 18px 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: linear-gradient(135deg, #34465a 0%, #34465aba 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(52, 70, 90, 0.3);
    position: relative;
    overflow: hidden;
}

.bsl-submit-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #3d5268 0%, #3d5268ba 100%);
    box-shadow: 0 12px 30px rgba(52, 70, 90, 0.4);
}

.bsl-submit-btn:active {
    transform: translateY(0);
}

.bsl-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bsl-btn-loader {
    display: inline-block;
}

.bsl-spinner {
    animation: spin 1s linear infinite;
}

.bsl-spinner circle {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    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; }
}

/* Terms */
.bsl-form-terms {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bsl-form-terms p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.bsl-form-terms a {
    color: #34465a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bsl-form-terms a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* ============================================
   CONTACT INFO SECTION
   ============================================ */

.bsl-contact-info-section {
    background: #ffffff;
    padding: 120px 0;
}

.bsl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.bsl-contact-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.bsl-contact-title {
    font-size: 42px;
    font-weight: 700;
    color: #304658;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.bsl-contact-subtitle {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Contact Cards */
.bsl-contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bsl-contact-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.bsl-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #34465a;
}

/* Card Icon */
.bsl-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #34465a 0%, #34465aba 100%);
    color: #304658;
}

/* Card Content */
.bsl-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #304658;
    margin: 0 0 15px 0;
}

.bsl-card-content {
    font-size: 16px;
    color: #6c757d;
}

.bsl-contact-link {
    color: #304658;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
}

.bsl-contact-link:hover {
    color: #1f5bff;
}

.bsl-address {
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    /* Support for both form structures */
    .form-fields-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px 12px !important;
        margin-bottom: 25px !important;
    }

    .form-field-full {
        grid-column: 1 / -1 !important;
    }

    .form-glass-container {
        padding: 30px 20px !important;
        border-radius: 20px !important;
    }
    .bsl-contact-form-section {
        padding: 60px 0 !important;
    }

    .bsl-form-content {
        padding: 30px 20px !important;
    }

    .bsl-form-title {
        font-size: 28px !important;
    }

    .bsl-form-subtitle {
        font-size: 16px !important;
    }

    .bsl-form-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px 12px !important;
    }

    .custom-input,
    .custom-select,
    .bsl-input,
    .bsl-select {
        padding: 14px 16px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .custom-textarea,
    .bsl-textarea {
        padding: 14px 16px !important;
        font-size: 14px !important;
        min-height: 100px !important;
        border-radius: 10px !important;
    }

    .custom-submit-btn,
    .bsl-submit-btn {
        padding: 16px 40px !important;
        font-size: 15px !important;
    }

    .form-header,
    .bsl-form-header {
        margin-bottom: 30px !important;
    }

    .form-header .t698__title,
    .bsl-form-title {
        font-size: 28px !important;
        margin-bottom: 12px !important;
    }

    .form-header .t698__descr,
    .bsl-form-subtitle {
        font-size: 16px !important;
    }

    .bsl-contact-info-section {
        padding: 80px 0 !important;
    }

    .bsl-contact-title {
        font-size: 32px !important;
    }

    .bsl-contact-cards {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Mobile */
@media (max-width: 640px) {
    /* Support for both form structures */
    .form-fields-grid,
    .bsl-form-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 14px 10px !important;
        margin-bottom: 20px !important;
    }

    .form-field-full,
    .bsl-field-full {
        grid-column: 1 / -1 !important;
    }

    .form-glass-container,
    .bsl-form-content {
        padding: 25px 16px !important;
        margin: 0 0px !important;
        border-radius: 16px !important;
    }

    .form-header,
    .bsl-form-header {
        margin-bottom: 25px !important;
    }

    .form-header .t698__title,
    .bsl-form-title {
        font-size: 24px !important;
        margin-bottom: 10px !important;
    }

    .form-header .t698__descr,
    .bsl-form-subtitle {
        font-size: 15px !important;
    }

    .bsl-contact-form-section {
        padding: 50px 0 !important;
    }

    .bsl-form-container {
        padding: 0 15px !important;
    }

    .custom-input,
    .custom-select,
    .custom-textarea,
    .bsl-input,
    .bsl-select,
    .bsl-textarea {
        padding: 12px 14px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .custom-textarea,
    .bsl-textarea {
        min-height: 90px !important;
    }

    .custom-submit-btn,
    .bsl-submit-btn {
        width: 100% !important;
        padding: 15px 30px !important;
        font-size: 14px !important;
    }

    .form-submit-wrapper,
    .bsl-form-submit {
        margin-top: 20px !important;
        margin-bottom: 16px !important;
    }

    .form-footer,
    .bsl-form-terms {
        margin-top: 20px !important;
        padding-top: 16px !important;
    }

    .bsl-contact-info-section {
        padding: 60px 0 !important;
    }

    .bsl-contact-header {
        margin-bottom: 50px !important;
    }

    .bsl-contact-title {
        font-size: 28px !important;
    }

    .bsl-contact-card {
        padding: 30px 20px !important;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    /* Support for both form structures */
    .form-glass-container,
    .bsl-form-content {
        padding: 20px 12px !important;
        margin: 0 0px !important;
        border-radius: 14px !important;
    }

    .form-header,
    .bsl-form-header {
        margin-bottom: 20px !important;
                margin-top: 30px;
    }

    .form-header .t698__title,
    .bsl-form-title {
        font-size: 28px !important;
        margin-bottom: 10px !important;
    }

    .form-header .t698__descr,
    .bsl-form-subtitle {
        margin-top: 20px;
    }

    .form-fields-grid,
    .bsl-form-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px 8px !important;
        margin-bottom: 18px !important;
    }

    .custom-input,
    .custom-select,
    .custom-textarea,
    .bsl-input,
    .bsl-select,
    .bsl-textarea {
        padding: 11px 12px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    .custom-textarea,
    .bsl-textarea {
        min-height: 80px !important;
    }

    .custom-submit-btn,
    .bsl-submit-btn {
        padding: 14px 24px !important;
        font-size: 13px !important;
    }

    .form-submit-wrapper,
    .bsl-form-submit {
        margin-top: 18px !important;
        margin-bottom: 14px !important;
    }

    .form-footer,
    .bsl-form-terms {
        margin-top: 18px !important;
        padding-top: 14px !important;
    }

    .t698__form-bottom-text,
    .bsl-form-terms p {
        font-size: 12px !important;
    }

    .contact-form-bg {
        padding: 40px 0 !important;
    }
}
