.three-cta-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.three-cta-main-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    line-height: 1.3;
    padding: 10px 20px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.three-cta-main-btn:active {
    transform: scale(0.98);
}

.three-cta-contact-row {
    display: flex;
    width: 100%;
    gap: 15px;
    margin-top: 15px;
}

.three-cta-contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background: transparent;
    border: 2px solid;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
    height: 60px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.three-cta-contact-btn .cta-svg-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

.three-cta-contact-btn:hover {
    opacity: 0.85;
}

/* Modal Popup Styles */
.three-cta-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

/* Offset popup in WordPress editor if logged in & admin bar exists */
body.admin-bar .three-cta-popup-overlay {
    top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar .three-cta-popup-overlay {
        top: 46px;
    }
}

.three-cta-popup-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 650px;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    color: #333333;
}

.three-cta-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #999999;
}

.three-cta-popup-close:hover {
    color: #333333;
}

.three-cta-popup-title {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 700;
}

.three-cta-popup-desc {
    margin: 0 0 25px 0;
    font-size: 14px;
    color: #666666;
}

/* Grid layout for form fields */
.three-cta-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.three-cta-form-grid .form-field {
    display: flex;
    flex-direction: column;
}

.three-cta-form-grid .form-field.full-width {
    grid-column: span 2;
}

.three-cta-form-grid .form-field label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333333;
}

.three-cta-form-grid .form-field input,
.three-cta-form-grid .form-field textarea {
    padding: 10px 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background-color: #fafafa;
    color: #333333;
}

.three-cta-form-grid .form-field input:focus,
.three-cta-form-grid .form-field textarea:focus {
    border-color: #F26382;
    outline: none;
    background-color: #ffffff;
}

.three-cta-submit-btn {
    width: 100%;
    background-color: #F26382;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    transition: opacity 0.2s;
    font-size: 15px;
}

.three-cta-submit-btn:hover {
    opacity: 0.9;
}

.three-cta-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.three-cta-form-status {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.three-cta-form-status.success {
    color: #27ae60;
}

.three-cta-form-status.error {
    color: #c0392b;
}

@media (max-width: 576px) {
    .three-cta-form-grid {
        grid-template-columns: 1fr;
    }
    .three-cta-form-grid .form-field.full-width {
        grid-column: span 1;
    }
    .three-cta-popup-card {
        padding: 20px;
    }
}
