/* modal.css */
.stroy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.stroy-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.stroy-modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    background: url('image/modal_bg.png') center/cover no-repeat;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden;
    color: #333;
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Montserrat', sans-serif;
}

/* Glassmorphism layer inside to make text readable */
.stroy-modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    z-index: 0;
}

.stroy-modal-content > * {
    position: relative;
    z-index: 1;
}

@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.stroy-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
    line-height: 1;
}

.stroy-modal-close:hover {
    color: #000;
}

.stroy-modal-header h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

.stroy-modal-header p {
    font-size: 14px;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.4;
}

#stroy-modal-form .form-group {
    margin-bottom: 15px;
}

#stroy-modal-form input[type="text"],
#stroy-modal-form input[type="tel"] {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

#stroy-modal-form input[type="text"]:focus,
#stroy-modal-form input[type="tel"]:focus {
    outline: none;
    border-color: #f47920;
    box-shadow: 0 0 0 3px rgba(244, 121, 32, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #f47920;
    border-color: #f47920;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 5px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-group label {
    font-size: 12px;
    color: #444;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-group label a {
    color: #f47920;
    text-decoration: none;
    transition: color 0.2s;
}

.checkbox-group label a:hover {
    color: #d15d0d;
    text-decoration: underline;
}

.stroy-modal-submit {
    width: 100%;
    padding: 16px;
    background: #f47920;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    font-family: inherit;
}

.stroy-modal-submit:hover {
    background: #e06815;
}

.stroy-modal-submit:active {
    transform: scale(0.98);
}
