/* TC Appointment Form Styles */

/* Form Base Styles */
.tc-form {
    margin: 0 auto;
}

.tc-form__field {
    margin-bottom: 1.5rem;
}

.tc-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1F3A5F;
}

.tc-form__input,
.tc-form__textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.tc-form__input:focus,
.tc-form__textarea:focus {
    outline: none;
    border-color: #4CAF88;
    box-shadow: 0 0 0 3px rgba(76, 175, 136, 0.1);
}

.tc-form__textarea {
    resize: vertical;
    min-height: 120px;
    border-radius: 20px;
}

.tc-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.tc-form__checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 4px;
}

.tc-form__checkbox span {
    line-height: 1.5;
}

.tc-form__submit {
    width: 100%;
    margin-top: 1rem;
}

.tc-form__message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.tc-form__message--success {
    background-color: rgba(76, 175, 136, 0.1);
    color: #4CAF88;
    border: 2px solid #4CAF88;
}

.tc-form__message--error {
    background-color: rgba(242, 96, 61, 0.1);
    color: #f2603d;
    border: 2px solid #f2603d;
}

.required {
    color: #f2603d;
}

/* Modal Styles */
.tc-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tc-modal--open {
    opacity: 1;
    visibility: visible;
}

.tc-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.tc-modal__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.tc-modal--open .tc-modal__content {
    transform: scale(1);
}

.tc-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 10;
}

.tc-modal__close:hover {
    color: #f2603d;
}

.tc-modal__title {
    margin: 0 0 1.5rem 0;
    font-size: 2rem;
    font-weight: 900;
    color: #1F3A5F;
}

body.tc-modal-open {
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .tc-modal__content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .tc-modal__title {
        font-size: 1.5rem;
    }
}

