/**
 * Contact Form Styles
 * Glass-morphism design with responsive layout
 */

/* Form Section Container - Override all Tilda styles */
#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: 80px 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), rgba(31, 91, 255, 0.85)),
                      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;
}

/* Ensure all containers are visible */
#rec76993896 .t-container,
#rec76993896 .t-col,
#rec75311852 .t-container,
#rec75311852 .t-col {
    position: static !important;
    overflow: visible !important;
    height: auto !important;
}

/* Glass Container */
.form-glass-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 50px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35),
                0 8px 16px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.form-glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header .t698__title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.form-header .t698__descr {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

/* Form Fields Grid */
.form-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.form-field-full {
    grid-column: 1 / -1;
}

/* Custom Input Styles */
.custom-input-wrapper,
.custom-select-wrapper {
    position: relative;
}

.custom-input,
.custom-select,
.custom-textarea {
    width: 100%;
    padding: 18px 22px;
    font-size: 16px;
    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;
    font-family: inherit;
}

.custom-input::placeholder,
.custom-select option:first-child,
.custom-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.custom-input:focus,
.custom-select:focus,
.custom-textarea:focus {
    outline: none;
    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);
}

/* Custom Select Arrow */
.custom-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;
}

.custom-select option {
    background: #2c3e50;
    color: #ffffff;
    padding: 10px;
}

/* Textarea */
.custom-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Input Focus Border Animation */
.input-focus-border,
.select-focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.custom-input-wrapper.focused .input-focus-border,
.custom-select-wrapper.focused .select-focus-border {
    width: 100%;
}

/* Error Messages */
.t-input-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

/* Submit Button */
.form-submit-wrapper {
    text-align: center;
    margin-top: 30px;
}

.custom-submit-btn {
    position: relative;
    padding: 18px 50px;
    font-size: 16px;
    font-weight: 600;
    color: #34465a;
    background: #ffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgb(217 217 217 / 40%);
}

.custom-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgb(217 217 217 / 40%);
}

.custom-submit-btn:active {
    transform: translateY(0);
}

.custom-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-gradient {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.custom-submit-btn:hover .btn-gradient {
    left: 100%;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.t698__form-bottom-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.6;
}

.t698__form-bottom-text a {
    color: #ffe100;
    text-decoration: none;
    transition: color 0.3s ease;
}

.t698__form-bottom-text a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* Success Message */
.t-form__successbox {
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid rgba(46, 213, 115, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    color: #ffffff;
    text-align: center;
}

/* Form Loading State */
.form-loading .custom-submit-btn {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet (768px and below) */
@media screen and (max-width: 768px) {
    .contact-form-bg {
        padding: 60px 0 !important;
    }

    #rec75311852 {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    .form-glass-container {
        padding: 30px 20px !important;
        border-radius: 20px !important;
    }

    .form-header {
        margin-bottom: 30px !important;
    }

    .form-header .t698__title {
        font-size: 28px !important;
        margin-bottom: 12px !important;
    }

    .form-header .t698__descr {
        font-size: 16px !important;
    }

    .form-fields-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px 12px !important;
        margin-bottom: 25px !important;
    }

    .custom-input,
    .custom-select {
        padding: 14px 16px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .custom-textarea {
        padding: 14px 16px !important;
        min-height: 100px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .custom-submit-btn {
        padding: 16px 40px !important;
        font-size: 15px !important;
    }
}

/* Mobile (640px and below) */
@media screen and (max-width: 640px) {
    .contact-form-bg {
        padding: 50px 0 !important;
    }

    #rec75311852 {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .form-glass-container {
        padding: 25px 16px !important;
        margin: 0 12px !important;
        border-radius: 16px !important;
    }

    .form-header {
        margin-bottom: 25px !important;
    }

    .form-header .t698__title {
        font-size: 24px !important;
        margin-bottom: 10px !important;
    }

    .form-header .t698__descr {
        font-size: 15px !important;
    }

    .form-fields-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 14px 10px !important;
        margin-bottom: 20px !important;
    }

    .custom-input,
    .custom-select {
        padding: 12px 14px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .custom-textarea {
        padding: 12px 14px !important;
        min-height: 90px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .custom-submit-btn {
        width: 100% !important;
        padding: 14px 30px !important;
        font-size: 14px !important;
    }

    .form-submit-wrapper {
        margin-top: 20px !important;
    }

    .form-footer {
        margin-top: 20px !important;
        padding-top: 16px !important;
    }
}

/* Small Mobile (480px and below) */
@media screen and (max-width: 480px) {
    .contact-form-bg {
        padding: 40px 0 !important;
    }

    #rec75311852 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .form-glass-container {
        padding: 20px 12px !important;
        margin: 0 10px !important;
        border-radius: 14px !important;
    }

    .form-header {
        margin-bottom: 20px !important;
    }

    .form-header .t698__title {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }

    .form-header .t698__descr {
        font-size: 14px !important;
    }

    .form-fields-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px 8px !important;
        margin-bottom: 18px !important;
    }

    .custom-input,
    .custom-select {
        padding: 11px 12px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    .custom-textarea {
        padding: 11px 12px !important;
        min-height: 80px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    .custom-submit-btn {
        padding: 13px 24px !important;
        font-size: 13px !important;
    }

    .form-submit-wrapper {
        margin-top: 18px !important;
    }

    .form-footer {
        margin-top: 18px !important;
        padding-top: 14px !important;
    }

    .t698__form-bottom-text {
        font-size: 12px !important;
    }
}

/* Contact Info Section (below the form) - Override all Tilda styles */
#rec75311852,
#rec75311852.t-rec {
    display: block !important;
    background: #ffffff !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    position: static !important;
    overflow: visible !important;
}

.contact-info-header {
    margin-bottom: 60px;
}

.contact-info-title-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info-main-title {
    font-size: 42px;
    font-weight: 700;
    color: #1A486F;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-info-subtitle {
    font-size: 18px;
    color: #6c757d;
    line-height: 1.6;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon-wrapper {
    margin-bottom: 10px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #34465a 0%, #4a6477 100%);
    color: #ffffff;
}

.contact-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #304658;
    margin-bottom: 15px;
}

.contact-card-content {
    font-size: 16px;
    color: #6c757d;
}

.contact-link {
    color: #304658;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #ffe100;
}

/* Contact Cards Responsive */
@media screen and (max-width: 768px) {
    #rec75311852 {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    .contact-info-header {
        margin-bottom: 50px;
    }

    .contact-info-main-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .contact-icon-wrapper {
    margin-bottom: 10px;
    margin-top: 15px;
}

    .contact-info-subtitle {
        font-size: 16px;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-icon {
        width: 56px;
        height: 56px;
    }

    .contact-card-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .contact-card-content {
        font-size: 15px;
    }
}

@media screen and (max-width: 640px) {
    #rec75311852 {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .contact-info-header {
        margin-bottom: 40px;
    }

    .contact-info-main-title {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .contact-info-subtitle {
        font-size: 15px;
        padding: 0 10px;
    }

    .contact-cards-grid {
        gap: 18px;
    }

    .contact-card {
        padding: 25px 18px;
    }

    .contact-icon {
        width: 52px;
        height: 52px;
    }

    .contact-card-title {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .contact-card-content {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    #rec75311852 {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .contact-info-header {
        margin-bottom: 35px;
    }

    .contact-info-main-title {
        font-size: var(--font-size-h2) !important;
        margin-bottom: 12px;
        line-height: 1.3;
    }

    .contact-info-subtitle {
        font-size: 14px;
        padding: 0 8px;
    }

    .contact-cards-grid {
        gap: 16px;
    }

    .contact-card {
        padding: 22px 16px;
        border-radius: 12px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
    }

    .contact-icon svg {
        width: 24px;
        height: 24px;
    }

    .contact-card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .contact-card-content {
        font-size: 13px;
    }

    .contact-link {
        font-size: 15px;
        word-break: break-all;
    }

    .address-text {
        font-size: 15px;
        line-height: 1.6;
    }
}
