/* ============================================
   CTA Consultation Widget
   Base styles — all overridable via Elementor.
============================================ */

/* Wrapper */
.ccw-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #1a2a3a;
    background-size: cover;
    background-position: center;
    width: 100%;
    box-sizing: border-box;
}

/* Overlay */
.ccw-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: 1;
}

/* Inner container */
.ccw-inner {
    position: relative;
    z-index: 2;
    padding: 50px 60px;
    box-sizing: border-box;
    width: 100%;
}

/* 2-column grid */
.ccw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

/* ============================================
   Left — Title + Description
============================================ */
.ccw-left {
    display: flex;
    flex-direction: column;
}

.ccw-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 14px 0;
    padding: 0;
    line-height: 1.3;
}

.ccw-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* ============================================
   Right — Phone + Form
============================================ */
.ccw-right {
    display: flex;
    flex-direction: column;
}

/* Phone block */
.ccw-phone {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.ccw-phone-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ccw-phone-number {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.ccw-phone-number:hover {
    opacity: 0.85;
}

.ccw-phone-icon {
    font-size: 18px;
    line-height: 1;
}

/* ============================================
   Form
============================================ */
.ccw-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.ccw-field {
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.ccw-field::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.ccw-field:focus {
    border-color: rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 255, 255, 0.15);
}

/* Submit Button */
.ccw-submit {
    background-color: #cc0000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    line-height: 1.4;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
}

.ccw-submit--full {
    width: 100%;
    display: block;
}

.ccw-submit:hover {
    background-color: #aa0000;
}

.ccw-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form feedback message */
.ccw-form-msg {
    font-size: 14px;
    line-height: 1.5;
    min-height: 0;
    transition: all 0.2s ease;
}

.ccw-form-msg:empty {
    display: none;
}

.ccw-form-msg.ccw-success {
    color: #6bdb8c;
}

.ccw-form-msg.ccw-error {
    color: #ff7b7b;
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 1024px) {
    .ccw-inner {
        padding: 40px 40px;
    }
    .ccw-grid {
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .ccw-inner {
        padding: 36px 24px;
    }
    .ccw-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
