/* ============================================================
   Damans Discovery Call — Front-end Form Styles
   Matched to Avada "Book A Discovery Call" form style
   ============================================================ */

.ddc-form-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-family: inherit;
    color: #fff;
    box-sizing: border-box;
}

.ddc-intro {
    margin-bottom: 20px;
    opacity: 0.85;
    font-size: 15px;
}

/* Messages */
.ddc-messages {
    margin-bottom: 16px;
}
.ddc-msg {
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}
.ddc-msg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.ddc-msg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* All rows stack full width — matching Avada layout */
.ddc-row {
    margin-bottom: 18px;
}

/* 2-col row only for name+phone on wider screens */
.ddc-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
@media ( max-width: 780px ) {
    .ddc-row-2 { grid-template-columns: 1fr; }
}

.ddc-form-wrap *,
.ddc-form-wrap *::before,
.ddc-form-wrap *::after {
    box-sizing: border-box;
}

/* Fields */
.ddc-field {
    display: flex;
    flex-direction: column;
}

/* Labels — white, normal weight, matching Avada */
.ddc-field > label,
.ddc-field > .ddc-field-label {
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 8px;
    display: block;
    text-transform: none;
    letter-spacing: 0;
    opacity: 1;
}

/* Inputs & textarea — light blue-grey fill, rounded, matching Avada */
.ddc-field input[type="text"],
.ddc-field input[type="tel"],
.ddc-field input[type="email"],
.ddc-field textarea {
    background: #e8eef4;
    border: 1px solid #d0dbe6;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 15px;
    color: #1a2a3a;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
}
.ddc-field input:focus,
.ddc-field textarea:focus {
    outline: none;
    border-color: #3d8bd4;
    box-shadow: 0 0 0 3px rgba(61,139,212,0.15);
    background: #f0f5fa;
}
.ddc-field input::placeholder,
.ddc-field textarea::placeholder {
    color: #7a9ab5;
    opacity: 1;
}
.ddc-field textarea {
    resize: vertical;
    min-height: 110px;
}

/* Callback section — label above, then options inline */
.ddc-callback-section > label {
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 10px;
    display: block;
}
.ddc-callback-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Pill-style radio buttons to match the styled feel */
.ddc-radio-label {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
}
.ddc-radio-label input[type="radio"] {
    display: none;
}
.ddc-radio-label span {
    display: inline-block;
    padding: 9px 18px;
    background: #e8eef4;
    border: 1px solid #d0dbe6;
    border-radius: 8px;
    font-size: 14px;
    color: #1a2a3a;
    font-weight: 400;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
}
.ddc-radio-label input[type="radio"]:checked + span {
    background: #3d8bd4;
    border-color: #3d8bd4;
    color: #fff;
    font-weight: 600;
}
.ddc-radio-label:hover span {
    border-color: #3d8bd4;
    background: #dce8f4;
}

/* Submit button — full width, bright blue, uppercase — matches Avada CTA */
.ddc-submit-row {
    margin-top: 8px;
}
.ddc-btn {
    width: 100%;
    background: #3d8bd4;
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
    display: block;
}
.ddc-btn:hover {
    background: #2e73b8;
}
.ddc-btn:active {
    background: #265f99;
}
.ddc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Honeypot — must be hidden */
.ddc-hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
