@import url('https://fonts.googleapis.com/css?family=Roboto+Slab:400,700&display=swap');

/* --- Form Container --- */
.ppcf-form {
    max-width: 540px;
    width: 98vw;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #FFD04E;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 28px 14px;
}

/* --- Form Fields --- */
.ppcf-field input[type="text"],
.ppcf-field input[type="email"],
.ppcf-field select {
    width: 100%;
    height: 48px;
    font-size: 17px;
    border: 1.5px solid #FFD04E;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    padding: 0 14px;
    margin-bottom: 12px;
    font-family: 'Roboto Slab', serif;
    font-weight: normal;
    background: #fff;
    transition: border 0.2s;
}
.ppcf-field input[type="text"]:focus,
.ppcf-field input[type="email"]:focus,
.ppcf-field select:focus {
    border-color: #FFB900;
    outline: none;
}
.ppcf-field label {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
    font-family: 'Roboto Slab', serif;
}

/* --- Consent Checkbox and Text --- */
.ppcf-consent-label {
    font-size: 13px !important;
    font-weight: normal !important;
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.5;
}
.ppcf-consent-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0 6px 0 0;
    accent-color: #FFD04E;
    flex-shrink: 0;
}

/* --- Address Row --- */
.ppcf-address-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}
.ppcf-address-row .ppcf-field.half {
    flex: 1 1 0;
    min-width: 0;
}
.ppcf-address-row .ppcf-field.half label {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ppcf-address-row .ppcf-field.half input,
.ppcf-address-row .ppcf-field.half select {
    height: 48px;
    font-size: 17px;
    border: 1.5px solid #FFD04E;
    border-radius: 8px;
    padding: 0 14px;
    box-sizing: border-box;
    background: #fff;
    margin-bottom: 0;
    font-family: 'Roboto Slab', serif;
    width: 100%;
}

/* --- Responsive for mobile --- */
@media (max-width: 800px) {
    .ppcf-form { max-width: 98vw; }
    .ppcf-address-row {
        flex-direction: column;
        gap: 0;
    }
    .ppcf-address-row .ppcf-field.half {
        margin-bottom: 12px;
    }
}

/* --- CAPTCHA --- */
.ppcf-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
#ppcf-captcha-img {
    border-radius: 6px;
    border: 1px solid #eee;
    background: #fafafa;
}
#ppcf-captcha-reload {
    border: none;
    background: #fafafa;
    color: #555;
    font-size: 19px;
    cursor: pointer;
    border-radius: 6px;
    padding: 4px 10px;
    transition: background 0.2s;
}
#ppcf-captcha-reload:hover { background: #FFD04E; }

.ppcf-submit-btn {
    display: block;
    width: 100%;
    background: #FFD04E;
    color: #111;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}
.ppcf-submit-btn:hover {
    background: #FFB900;
}
.ppcf-error {
    border-color: red !important;
}

/* --- Popup --- */
.ppcf-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden !important;
}

/* --- Updated Popup Content for wider display and less vertical overflow --- */
.ppcf-popup-content {
    background: #fff;
    border-radius: 10px;
    padding: 32px 24px;
    box-sizing: border-box;
    max-width: 900px;
    width: 96vw;
    min-width: 280px;
    border: 2px solid #FFD04E;
    box-shadow: 0 4px 32px rgba(0,0,0,0.14);
    text-align: center;
    position: relative;
    margin: 32px auto;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    overflow-x: hidden;
}
.ppcf-popup-content span {
    display: block;
    margin-bottom: 18px;
    color: #222 !important;
    font-size: 16px !important;
    font-weight: normal !important;
    line-height: 1.6 !important;
    font-family: 'Roboto Slab', serif !important;
    word-break: break-word !important;
}
div.ppcf-popup-content span.ppcf-congrats-name {
    color: #1bb300 !important;
    font-size: 29px !important;
    letter-spacing: 1px !important;
    display: block !important;
    margin-bottom: 12px !important;
    font-family: 'Roboto Slab', serif !important;
    word-break: break-word !important;
}
div.ppcf-popup-content span.ppcf-claim-code {
    font-weight: bold !important;
    font-size: 28px !important;
    color: #0074d9 !important;
    letter-spacing: 2px !important;
    display: block !important;
    margin: 8px 0 14px 0 !important;
    font-family: 'Roboto Slab', serif !important;
    word-break: break-word !important;
}

/* --- Inquiry Button --- */
.ppcf-inquiry-btn {
    background: #FFD04E !important;
    color: #111 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 13px 26px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    margin-bottom: 14px !important;
    transition: background 0.2s, color 0.2s !important;
}
.ppcf-inquiry-btn:hover {
    background: #111 !important;
    color: #fff !important;
}

/* --- Close Button --- */
.ppcf-close-popup {
    background: transparent !important;
    border: none !important;
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
    width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.ppcf-x-icon {
    font-size: 1.8rem !important;
    font-weight: bold !important;
    color: #111 !important;
    transition: color 0.2s !important;
}
.ppcf-close-popup:hover .ppcf-x-icon {
    color: #FFD04E !important;
}

/* --- Preloader Styles --- */
#ppcf-preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s;
}
.ppcf-preloader-spinner {
    border: 5px solid #FFD04E;
    border-top: 5px solid #0074d9;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    animation: ppcf-spin 1s linear infinite;
    margin-bottom: 16px;
}
@keyframes ppcf-spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
.ppcf-preloader-text {
    font-size: 18px;
    color: #222;
    font-family: 'Roboto Slab', serif;
    font-weight: 500;
    margin-top: 8px;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
    .ppcf-popup-content {
        max-width: 98vw !important;
        width: 98vw !important;
        padding: 18px 2vw !important;
        margin: 10px auto !important;
        max-height: calc(100vh - 12px) !important;
    }
}
@media (max-width: 700px) {
    .ppcf-popup-content {
        max-width: 99vw !important;
        width: 99vw !important;
        padding: 8px 1vw !important;
        margin: 4px auto !important;
        max-height: calc(100vh - 5px) !important;
    }
}