/* Modal overlay */
.tew-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.tew-modal.tew-modal-open {
    display: flex;
}

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

/* Modal content */
.tew-modal-content {
    position: relative;
    background: white;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    box-sizing: border-box;
}

.tew-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #000;
    padding: 0;
}

.tew-modal-close:hover {
    color: #330033;
}

.tew-modal-content h2 {
    margin: 0 0 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

/* Form */
.tew-contact-form .tew-form-group {
    margin-bottom: 1rem;
}

.tew-contact-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.tew-contact-form .required {
    color: #d00;
}

.tew-contact-form input[type="text"],
.tew-contact-form input[type="email"],
.tew-contact-form input[type="tel"],
.tew-contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cecdcd;
    border-radius: 0.1875rem;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.tew-contact-form input:focus,
.tew-contact-form textarea:focus {
    outline: none;
    border-color: #330033;
    box-shadow: 0 0 0 2px rgba(51, 0, 51, 0.1);
}

.tew-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form actions */
.tew-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.tew-form-actions .button {
    margin: 0;
}

.tew-form-status {
    font-size: 0.875rem;
}

.tew-form-status.success {
    color: #080;
}

.tew-form-status.error {
    color: #d00;
}

.tew-form-status.loading {
    color: #666;
}

/* Success state (replaces form) */
.tew-success-state {
    text-align: center;
    padding: 2rem 1rem;
}

.tew-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: #080;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.tew-success-message {
    font-size: 1.25rem;
    line-height: 1.5;
    color: #000;
}
