/* Luxurious Front-End Stylesheet for InfoPixal Custom Forms */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

.ip-form-wrapper {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(12, 117, 154, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.ip-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0c759a 0%, #0f172a 100%);
}

.ip-form-header {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.ip-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Full-width field types that should span both columns */
.ip-form-group.type-textarea,
.ip-form-group.type-select,
.ip-form-group.type-radio,
.ip-form-group.type-checkbox,
.ip-form-group.type-file {
    grid-column: 1 / -1;
}

/* Responsive: stack on mobile */
@media (max-width: 600px) {
    .ip-fields-grid {
        grid-template-columns: 1fr;
    }
}

.ip-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.ip-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ip-form-group label .required-star {
    color: #e30613;
    font-size: 14px;
    margin-left: 2px;
}

/* Inputs, textareas, selects */
.ip-form-group input[type="text"],
.ip-form-group input[type="email"],
.ip-form-group input[type="tel"],
.ip-form-group input[type="url"],
.ip-form-group input[type="number"],
.ip-form-group textarea,
.ip-form-group select {
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    font-family: inherit !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    height: auto !important;
}

/* Placeholder styling — visible and elegant */
.ip-form-group input::placeholder,
.ip-form-group textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-size: 13px !important;
}

/* Custom dropdown arrow for select elements */
.ip-form-group select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}

.ip-form-group input:focus,
.ip-form-group textarea:focus,
.ip-form-group select:focus {
    border-color: #0c759a !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(12, 117, 154, 0.12) !important;
}

.ip-form-group textarea {
    resize: vertical;
}

/* Multi-options list radio/checkboxes */
.ip-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.ip-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500 !important;
    color: #334155;
    text-transform: none !important;
    cursor: pointer;
}

.ip-option-label input[type="checkbox"],
.ip-option-label input[type="radio"] {
    margin: 0 !important;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #0c759a;
}

/* Document file uploads styled wrapper */
.ip-file-upload-wrapper {
    position: relative;
    width: 100%;
}

.ip-file-upload-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.ip-file-upload-prompt {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    transition: all 0.25s ease;
}

.ip-file-upload-wrapper:hover .ip-file-upload-prompt {
    border-color: #0c759a;
    background: rgba(12, 117, 154, 0.02);
    color: #0c759a;
}

/* Submission action button */
.ip-form-submit-btn {
    background: linear-gradient(135deg, #0c759a 0%, #084f6a 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 35px !important;
    border-radius: 30px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 4px 15px rgba(12, 117, 154, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ip-form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12, 117, 154, 0.45) !important;
    background: #0f172a !important;
}

.ip-form-submit-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Alert response statuses feedback templates */
.ip-form-feedback {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    animation: ipSlideDown 0.3s ease;
}

@keyframes ipSlideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ip-form-feedback.success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #047857;
}

.ip-form-feedback.error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #b91c1c;
}

.ip-form-error-alert {
    background: #fff5f5;
    border: 1px solid #e53e3e;
    color: #c53030;
    padding: 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
    font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════════
   INTERNATIONAL TELEPHONE INPUT (intlTelInput) LUXURY BRAND STYLE OVERRIDES
   ════════════════════════════════════════════════════════════════════════ */
.iti {
    width: 100% !important;
}

.iti__country-list {
    background-color: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.12) !important;
    font-family: 'Outfit', sans-serif !important;
    z-index: 9999 !important;
    max-width: 320px !important;
    padding: 6px 0 !important;
    margin-top: 4px !important;
}

.iti__country {
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    transition: background 0.2s, color 0.2s !important;
}

.iti__country.iti__highlight {
    background-color: rgba(227, 6, 19, 0.05) !important;
    color: #e30613 !important;
}

.iti__selected-flag {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    background-color: #f8fafc !important;
    transition: background 0.2s ease !important;
    padding: 0 12px 0 14px !important;
}

.iti__selected-flag:hover {
    background-color: #e2e8f0 !important;
}

.iti--allow-dropdown input[type="tel"] {
    padding-left: 56px !important;
}
.iti--separate-dial-code input[type="tel"] {
    padding-left: 85px !important;
}

.iti__dial-code {
    color: #64748b !important;
    font-size: 13px !important;
}

/* ════════════════════════════════════════════════════════════════════════
   LUXURIOUS THANK YOU PAGE GRAPHICS & STYLE CARD
   ════════════════════════════════════════════════════════════════════════ */
.ip-thankyou-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    font-family: 'Outfit', sans-serif;
}

.ip-thankyou-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(12, 117, 154, 0.12);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 620px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 20px auto;
}

.ip-thankyou-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0c759a 0%, #0f172a 100%);
}

.ip-thankyou-icon {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: #10b981;
    animation: ipPulse 2s infinite ease-in-out;
}

@keyframes ipPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.15); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px 5px rgba(16, 185, 129, 0.1); }
}

.ip-thankyou-icon svg {
    width: 44px;
    height: 44px;
}

.ip-thankyou-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 15px !important;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.ip-thankyou-subtitle {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 35px;
}

.ip-thankyou-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 auto 30px !important;
    max-width: 480px;
}

.ip-thankyou-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ip-step-num {
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1.5px solid #10b981 !important;
    color: #10b981 !important;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ip-step-desc h4 {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px !important;
    padding: 0 !important;
    text-transform: none !important;
}

.ip-step-desc p {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    margin: 0 !important;
    padding: 0 !important;
}

.ip-thankyou-actions {
    display: flex;
    justify-content: center;
}

.ip-thankyou-btn {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.ip-thankyou-btn:hover {
    background: #0c759a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12, 117, 154, 0.45) !important;
}

/* ════════════════════════════════════════════════════════════════════════
   POPUP MAKER & CUSTOM DPF CONTACT FORM STYLE OVERRIDES
   ════════════════════════════════════════════════════════════════════════ */
.pum-container {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

.dpf-contact-form-container {
    padding: 0 !important;
}

.dpf-contact-form-title {
    margin: 0 !important;
}

.ip-form-wrapper {
    margin: 0 !important;
}


