.acb-cta-button,
.acb-modal-wrapper,
.acb-modal-wrapper *,
.acb-modal-overlay,
.acb-modal-container,
.acb-modal-content,
.acb-form,
.acb-form * {
    box-sizing: border-box;
}

.acb-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.acb-cta-button:focus {
    outline: 2px solid rgba(0, 115, 170, 0.5);
    outline-offset: 2px;
}

.acb-cta-button .dashicons {
    width: auto;
    height: auto;
    font-size: 1.2em;
}

.acb-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.acb-modal-wrapper.acb-animation-fade {
    animation: acbFadeIn 0.3s ease-out;
}

.acb-modal-wrapper.acb-animation-slide {
    animation: acbSlideIn 0.4s ease-out;
}

.acb-modal-wrapper.acb-animation-bounce {
    animation: acbBounceIn 0.5s ease-out;
}

.acb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.acb-modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2;
    box-sizing: border-box;
}

.acb-modal-modal .acb-modal-content {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

.acb-modal-slide-right .acb-modal-content {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    max-width: 500px;
    width: 100%;
    border-radius: 0;
    animation: acbSlideFromRight 0.4s ease-out;
}

.acb-modal-slide-left .acb-modal-content {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    max-width: 500px;
    width: 100%;
    border-radius: 0;
    animation: acbSlideFromLeft 0.4s ease-out;
}

.acb-modal-slide-bottom .acb-modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    animation: acbSlideFromBottom 0.4s ease-out;
}

.acb-modal-content {
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    max-width: 100%;
}

.acb-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acb-modal-close:hover {
    color: #333;
}

.acb-modal-header {
    margin-bottom: 25px;
}

.acb-modal-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.acb-modal-header p {
    margin: 0;
    opacity: 0.8;
    font-size: 18px;
}

.acb-form {
    width: 100%;
}

.acb-form-group {
    margin-bottom: 20px;
}

.acb-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.acb-form .required {
    color: #d63638;
}

.acb-form .optional {
    color: #757575;
    font-weight: 400;
    font-size: 0.9em;
}

.acb-form .char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #757575;
    margin-top: 5px;
}

.acb-form input[type="text"],
.acb-form input[type="email"],
.acb-form input[type="tel"],
.acb-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid;
    border-radius: 4px;
    font-size: inherit;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.acb-form input[type="text"]:focus,
.acb-form input[type="email"]:focus,
.acb-form input[type="tel"]:focus,
.acb-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

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

.acb-form-submit {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.acb-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.acb-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.acb-form-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.acb-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.acb-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.acb-captcha-group {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.acb-captcha-group > div {
    max-width: 100%;
}

.acb-consent-group {
    margin: 25px 0;
}

.acb-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.acb-consent-label input[type="checkbox"] {
    margin-top: 1px;
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.acb-consent-label span {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
}

.acb-consent-label a {
    color: #0073aa;
    text-decoration: underline;
}

.acb-consent-label a:hover {
    color: #005a87;
}

.acb-contact-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.acb-contact-person {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.acb-contact-person strong {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.acb-contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.acb-contact-link:hover {
    color: #e51a4b;
}

@keyframes acbFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes acbSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes acbBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes acbSlideFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes acbSlideFromLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes acbSlideFromBottom {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .acb-modal-content {
        padding: 20px;
        max-width: 100%;
        width: 100%;
    }
    
    .acb-modal-header h3 {
        font-size: 20px;
    }
    
    .acb-modal-slide-right .acb-modal-content,
    .acb-modal-slide-left .acb-modal-content {
        max-width: 100%;
        width: 100%;
    }
    
    .acb-modal-container {
        padding: 15px;
    }
    
    .acb-fixed-button {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    .acb-fixed-button .acb-button-text {
        display: none;
    }
    
    .acb-fixed-button .dashicons {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .acb-modal-modal .acb-modal-content {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        padding: 15px;
    }
    
    .acb-modal-container {
        padding: 10px;
    }
    
    .acb-modal-content {
        padding: 15px;
    }
    
    .acb-form input[type="text"],
    .acb-form input[type="email"],
    .acb-form input[type="tel"],
    .acb-form textarea {
        padding: 10px 12px;
        width: 100%;
    }
    
    .acb-captcha-group > div {
        transform: scale(0.85);
        transform-origin: center;
    }
}

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