/* Telegram Contact Form Styles - Modern Version */

/* Google Font import for modern look */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

.tcf-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.tcf-form-wrapper {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tcf-form-wrapper:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    /* Spalva nustatoma inline stiliais */
}

.tcf-form-title {
    font-size: 28px;
    color: #333;
    margin-top: 0;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    position: relative;
}

.tcf-form-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    /* Spalva nustatoma inline stiliais */
    border-radius: 3px;
}

.tcf-field-group {
    margin-bottom: 25px;
    position: relative;
}

.tcf-field-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
    font-size: 16px;
    transition: color 0.3s;
}

.tcf-field-group input[type="text"],
.tcf-field-group input[type="email"],
.tcf-field-group input[type="tel"],
.tcf-field-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.tcf-field-group textarea {
    height: 150px;
    resize: vertical;
    line-height: 1.5;
}

.tcf-field-group input:focus,
.tcf-field-group textarea:focus {
    outline: none;
    /* Spalva nustatoma inline stiliais */
    background-color: #fff;
}

.tcf-field-group input:hover,
.tcf-field-group textarea:hover {
    border-color: #bbb;
}

.tcf-field-error {
    color: #e63946;
    font-size: 14px;
    margin-top: 8px;
    display: none;
    padding-left: 5px;
    font-weight: 500;
}

.tcf-field-group.has-error input,
.tcf-field-group.has-error textarea {
    border-color: #e63946;
    background-color: #fff8f8;
}

.tcf-field-group.has-error label {
    color: #e63946;
}

.tcf-submit-group {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tcf-submit-btn {
    /* Spalva nustatoma inline stiliais */
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 30px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Šešėlis nustatomas inline stiliais */
    min-width: 180px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.tcf-submit-btn:hover {
    /* Šešėlis nustatomas inline stiliais */
    transform: translateY(-2px);
}

.tcf-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(42, 106, 232, 0.2);
}

/* Submit button loading animation */
.tcf-btn-loading {
    position: relative;
    color: transparent !important;
}

.tcf-btn-loading:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Field focus effect */
.tcf-field-group.is-focused {
    transform: translateY(-2px);
}

.tcf-field-group.is-focused input,
.tcf-field-group.is-focused textarea {
    /* Spalva nustatoma inline stiliais */
    background-color: #fff;
}

.tcf-field-group.is-focused label {
    /* Spalva nustatoma inline stiliais */
    font-weight: 600;
}

.tcf-success-message,
.tcf-error-message {
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tcf-success-message {
    background-color: #edf7ed;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.tcf-error-message {
    background-color: #fdeeee;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
}

/* Required field indicator */
.tcf-field-group .required {
    color: #e63946;
    margin-left: 3px;
}

/* Checkbox stilius */
.tcf-consent-group {
    margin-bottom: 20px;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.tcf-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    cursor: pointer;
}

.tcf-checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    /* Spalva nustatoma inline stiliais */
    border-radius: 4px;
    margin-top: 0;
    margin-right: 10px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    background-color: #fff;
}

.tcf-checkbox-label input[type="checkbox"]:checked {
    /* Spalva nustatoma inline stiliais */
}

.tcf-checkbox-label input[type="checkbox"]:checked:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tcf-checkbox-label input[type="checkbox"]:focus {
    /* Šešėlis nustatomas inline stiliais */
    outline: none;
}

.tcf-checkbox-label span {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

/* Field icons - add pseudo elements for icons */
.tcf-field-group.name-field input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
    padding-left: 45px;
}

.tcf-field-group.email-field input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1H2zm13 2.383l-4.758 2.855L15 11.114v-5.73zm-.034 6.878L9.271 8.82 8 9.583 6.728 8.82l-5.694 3.44A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.739zM1 11.114l4.758-2.876L1 5.383v5.73z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
    padding-left: 45px;
}

.tcf-field-group.phone-field input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.885.511a1.745 1.745 0 0 1 2.61.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
    padding-left: 45px;
}

.tcf-field-group.message-field textarea {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-2.5a2 2 0 0 0-1.6.8L8 14.333 6.1 11.8a2 2 0 0 0-1.6-.8H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2.5a1 1 0 0 1 .8.4l1.9 2.533a1 1 0 0 0 1.6 0l1.9-2.533a1 1 0 0 1 .8-.4H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z'/%3E%3Cpath d='M3 3.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zM3 6a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9A.5.5 0 0 1 3 6zm0 2.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px 15px;
    padding-left: 45px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .tcf-form-wrapper {
        padding: 30px 20px;
    }
    
    .tcf-form-title {
        font-size: 24px;
    }
    
    .tcf-field-group input[type="text"],
    .tcf-field-group input[type="email"],
    .tcf-field-group input[type="tel"],
    .tcf-field-group textarea {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .tcf-submit-btn {
        padding: 14px 25px;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .tcf-form-wrapper {
        padding: 25px 15px;
    }
    
    .tcf-form-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
} 