.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.contact-modal.is-open {
    display: flex;
}

.contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.contact-modal-content {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    margin: 20px;
    padding: 48px 40px 40px;
    z-index: 1;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #514b4a;
    cursor: pointer;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.contact-modal-close:hover {
    opacity: 1;
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-spark {
    display: block;
    margin: 0 auto 16px;
    height: 48px;
    width: auto;
}

.contact-modal-header h2 {
    font-family: "helveticabold", Helvetica, Arial, sans-serif;
    font-size: 28px;
    line-height: 1.2;
    color: #343435;
    margin-bottom: 8px;
}

.contact-modal-header p {
    font-family: "helveticaregular", Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #514b4a;
    margin: 0;
}

.contact-modal-form .form-control {
    border: 1.66px dotted #938277;
    border-radius: 0;
    color: #938277;
    font-family: "helveticabold", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    padding: 12px 16px;
    width: 100%;
    background: transparent;
    transition: border-color 0.2s, border-style 0.2s;
}

.contact-modal-form .form-control::placeholder {
    color: #938277;
    opacity: 1;
}

.contact-modal-form .form-control:focus {
    outline: none;
    border-color: #fe5812;
    border-style: solid;
    box-shadow: none;
}

.contact-modal-form .btn.submit {
    background: #fe5812;
    width: 100%;
    height: 50px;
    font-family: "helveticabold", Helvetica, Arial, sans-serif;
    font-size: 16px;
    border: 2px solid #fe5812;
    border-radius: 0;
    color: #ffffff;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
    cursor: pointer;
}

.contact-modal-form .btn.submit:hover {
    background: #ffffff;
    color: #fe5812;
}

.contact-modal-form .btn.submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-modal-success {
    text-align: center;
    padding: 20px 0;
}

.contact-modal-success p {
    font-family: "helveticabold", Helvetica, Arial, sans-serif;
    font-size: 20px;
    color: #343435;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 576px) {
    .contact-modal-content {
        padding: 40px 24px 32px;
        margin: 0;
        max-width: 100%;
        max-height: 100%;
        overflow-y: auto;
        align-self: flex-end;
    }
}
