/**
 * Urlop Express - Professional Form Styles v1.0.1
 * Brand colors: Navy #00163B, Orange #FF7700
 * High specificity to override theme styles
 */

/* ============================================
   RESET & BASE - Maximum specificity
   ============================================ */

html body .urlop-express-form-wrapper,
html body .urlop-express-form-wrapper *,
html body .urlop-express-form-wrapper *::before,
html body .urlop-express-form-wrapper *::after {
    box-sizing: border-box !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

html body .urlop-express-form-wrapper {
    all: initial !important;
    display: block !important;
    max-width: 680px !important;
    margin: 30px auto !important;
    padding: 0 !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    background: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 22, 59, 0.08), 0 1px 3px rgba(0, 22, 59, 0.06) !important;
    text-align: left !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: hidden !important;
}

/* ============================================
   HEADER
   ============================================ */

html body .urlop-express-form-wrapper .urlop-express-header {
    all: initial !important;
    display: flex !important;
    background: linear-gradient(135deg, #00163B 0%, #001e4d 100%) !important;
    color: #fff !important;
    padding: 20px 32px !important;
    margin: 0 !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

html body .urlop-express-form-wrapper .urlop-express-header h2 {
    all: initial !important;
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1.3 !important;
}

html body .urlop-express-form-wrapper .urlop-express-subtitle {
    all: initial !important;
    display: inline !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* ============================================
   FORM CONTAINER
   ============================================ */

html body .urlop-express-form-wrapper .urlop-express-form {
    all: initial !important;
    display: block !important;
    background: #fff !important;
    padding: 32px 36px !important;
    margin: 0 !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
}

/* ============================================
   FORM ROWS
   ============================================ */

html body .urlop-express-form-wrapper .urlop-form-row {
    all: initial !important;
    display: block !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
}

html body .urlop-express-form-wrapper .urlop-form-row:last-child {
    margin-bottom: 0 !important;
}

html body .urlop-express-form-wrapper .urlop-form-row-2col {
    all: initial !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin: 0 0 24px 0 !important;
    font-family: inherit !important;
}

html body .urlop-express-form-wrapper .urlop-form-group {
    all: initial !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
}

html body .urlop-express-form-wrapper .urlop-form-group-inline {
    all: initial !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 16px !important;
    align-items: center !important;
    font-family: inherit !important;
}

/* Field labels */
html body .urlop-express-form-wrapper .urlop-field-label {
    all: initial !important;
    display: block !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ============================================
   INPUT STYLING
   ============================================ */

html body .urlop-express-form-wrapper input[type="text"],
html body .urlop-express-form-wrapper input[type="email"],
html body .urlop-express-form-wrapper input[type="date"],
html body .urlop-express-form-wrapper input[type="number"],
html body .urlop-express-form-wrapper select,
html body .urlop-express-form-wrapper textarea {
    all: initial !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 18px !important;
    margin: 0 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #1f2937 !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

html body .urlop-express-form-wrapper input[type="text"]:hover,
html body .urlop-express-form-wrapper input[type="email"]:hover,
html body .urlop-express-form-wrapper input[type="date"]:hover,
html body .urlop-express-form-wrapper input[type="number"]:hover,
html body .urlop-express-form-wrapper select:hover,
html body .urlop-express-form-wrapper textarea:hover {
    border-color: #9ca3af !important;
}

html body .urlop-express-form-wrapper input:focus,
html body .urlop-express-form-wrapper select:focus,
html body .urlop-express-form-wrapper textarea:focus {
    outline: none !important;
    border-color: #FF7700 !important;
    box-shadow: 0 0 0 3px rgba(255, 119, 0, 0.15) !important;
}

html body .urlop-express-form-wrapper input::placeholder,
html body .urlop-express-form-wrapper textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

html body .urlop-express-form-wrapper select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-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 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}

html body .urlop-express-form-wrapper input[type="date"] {
    width: auto !important;
    min-width: 150px !important;
    cursor: pointer !important;
}

html body .urlop-express-form-wrapper input[type="number"] {
    width: 75px !important;
    text-align: center !important;
    padding: 14px 10px !important;
}

html body .urlop-express-form-wrapper textarea {
    resize: vertical !important;
    min-height: 70px !important;
}

/* ============================================
   DOCUMENT SECTION
   ============================================ */

html body .urlop-express-form-wrapper .urlop-document-section {
    all: initial !important;
    display: block !important;
    margin: 36px 0 0 0 !important;
    padding: 28px !important;
    background: #f8fafc !important;
    border-radius: 8px !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
}

/* Company group */
html body .urlop-express-form-wrapper .urlop-company-group {
    all: initial !important;
    display: block !important;
    margin: 0 0 32px 0 !important;
    padding: 0 0 28px 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-family: inherit !important;
}

/* ============================================
   LEAVE REQUEST SECTION
   ============================================ */

html body .urlop-express-form-wrapper .urlop-leave-section {
    all: initial !important;
    display: block !important;
    margin: 0 0 28px 0 !important;
    padding: 0 !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
}

html body .urlop-express-form-wrapper .urlop-leave-line {
    all: initial !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 20px 0 !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
}

html body .urlop-express-form-wrapper .urlop-dates-line {
    all: initial !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 2.4 !important;
    color: #374151 !important;
}

html body .urlop-express-form-wrapper .urlop-label {
    all: initial !important;
    display: inline !important;
    white-space: nowrap !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
}

html body .urlop-express-form-wrapper .urlop-leave-line select {
    min-width: 220px !important;
}

/* Substitute row */
html body .urlop-express-form-wrapper .urlop-substitute-row {
    all: initial !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 24px 0 0 0 !important;
    border-top: 1px solid #e5e7eb !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    color: #374151 !important;
}

html body .urlop-express-form-wrapper .urlop-substitute-row input[type="text"] {
    flex: 1 !important;
    max-width: 300px !important;
}

/* ============================================
   EMAIL DELIVERY SECTION
   ============================================ */

html body .urlop-express-form-wrapper .urlop-email-delivery-section {
    all: initial !important;
    display: block !important;
    margin: 32px 0 0 0 !important;
    padding: 24px !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border: 1px solid #bae6fd !important;
    border-radius: 8px !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
}

html body .urlop-express-form-wrapper .urlop-email-delivery-checkbox {
    all: initial !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-family: inherit !important;
}

html body .urlop-express-form-wrapper .urlop-email-delivery-checkbox input[type="checkbox"] {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    accent-color: #0284c7 !important;
    flex-shrink: 0 !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
}

html body .urlop-express-form-wrapper .urlop-email-delivery-checkbox label {
    all: initial !important;
    display: inline !important;
    cursor: pointer !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0c4a6e !important;
}

html body .urlop-express-form-wrapper .urlop-email-fields {
    all: initial !important;
    display: block !important;
    margin: 18px 0 0 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
}

html body .urlop-express-form-wrapper .urlop-email-fields .urlop-form-group {
    margin-bottom: 14px !important;
}

html body .urlop-express-form-wrapper .urlop-marketing-consent {
    all: initial !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-family: inherit !important;
}

html body .urlop-express-form-wrapper .urlop-marketing-consent input[type="checkbox"] {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    accent-color: #0284c7 !important;
    flex-shrink: 0 !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;
}

html body .urlop-express-form-wrapper .urlop-marketing-consent label {
    all: initial !important;
    display: inline !important;
    cursor: pointer !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

/* ============================================
   FORM ACTIONS & BUTTON
   ============================================ */

html body .urlop-express-form-wrapper .urlop-form-actions {
    all: initial !important;
    display: block !important;
    margin: 40px 0 0 0 !important;
    padding: 28px 0 0 0 !important;
    border-top: 1px solid #e5e7eb !important;
    text-align: center !important;
    font-family: inherit !important;
}

html body .urlop-express-form-wrapper .urlop-btn {
    all: initial !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 44px !important;
    margin: 0 !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #fff !important;
    background: linear-gradient(135deg, #FF7700 0%, #e86a00 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(255, 119, 0, 0.3) !important;
    transition: all 0.2s ease !important;
}

html body .urlop-express-form-wrapper .urlop-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 119, 0, 0.4) !important;
}

html body .urlop-express-form-wrapper .urlop-btn:active {
    transform: translateY(0) !important;
}

html body .urlop-express-form-wrapper .urlop-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ============================================
   FORM MESSAGE
   ============================================ */

html body .urlop-express-form-wrapper .urlop-form-message {
    all: initial !important;
    display: none !important;
    margin: 20px 0 0 0 !important;
    padding: 14px 18px !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

html body .urlop-express-form-wrapper .urlop-form-message.success {
    display: block !important;
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

html body .urlop-express-form-wrapper .urlop-form-message.error {
    display: block !important;
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

html body .urlop-express-form-wrapper .urlop-form-message.loading {
    display: block !important;
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

html body .urlop-express-form-wrapper .urlop-newsletter-section {
    all: initial !important;
    display: block !important;
    margin: 28px 0 0 0 !important;
    padding: 20px !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
    font-family: inherit !important;
}

html body .urlop-express-form-wrapper .urlop-newsletter-checkbox {
    all: initial !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: inherit !important;
}

html body .urlop-express-form-wrapper .urlop-newsletter-checkbox input[type="checkbox"] {
    all: initial !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    accent-color: #00163B !important;
}

html body .urlop-express-form-wrapper .urlop-newsletter-checkbox label {
    all: initial !important;
    display: inline !important;
    cursor: pointer !important;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px !important;
    color: #4b5563 !important;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media screen and (max-width: 640px) {
    html body .urlop-express-form-wrapper {
        margin: 15px !important;
        border-radius: 10px !important;
    }

    html body .urlop-express-form-wrapper .urlop-express-header {
        padding: 18px 24px !important;
        flex-direction: column !important;
        gap: 6px !important;
        text-align: center !important;
    }

    html body .urlop-express-form-wrapper .urlop-express-form {
        padding: 24px !important;
    }

    html body .urlop-express-form-wrapper .urlop-form-row-2col {
        grid-template-columns: 1fr !important;
    }

    html body .urlop-express-form-wrapper .urlop-form-group-inline {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    html body .urlop-express-form-wrapper .urlop-document-section {
        padding: 20px !important;
    }

    html body .urlop-express-form-wrapper .urlop-leave-line,
    html body .urlop-express-form-wrapper .urlop-dates-line {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
    }

    html body .urlop-express-form-wrapper .urlop-leave-line select,
    html body .urlop-express-form-wrapper .urlop-dates-line input[type="date"],
    html body .urlop-express-form-wrapper .urlop-dates-line input[type="number"] {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body .urlop-express-form-wrapper .urlop-substitute-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
    }

    html body .urlop-express-form-wrapper .urlop-substitute-row input[type="text"] {
        max-width: none !important;
        width: 100% !important;
    }

    html body .urlop-express-form-wrapper .urlop-btn {
        width: 100% !important;
        padding: 14px 24px !important;
    }

    html body .urlop-express-form-wrapper .urlop-email-delivery-section {
        padding: 18px !important;
    }

    html body .urlop-express-form-wrapper .urlop-email-delivery-checkbox {
        flex-wrap: wrap !important;
    }

    html body .urlop-express-form-wrapper .urlop-marketing-consent {
        flex-wrap: wrap !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    html body .urlop-express-form-wrapper {
        max-width: none !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }

    html body .urlop-express-form-wrapper .urlop-form-actions,
    html body .urlop-express-form-wrapper .urlop-newsletter-section {
        display: none !important;
    }
}

/* ============================================
   HIDDEN ELEMENTS
   ============================================ */

html body .urlop-express-form-wrapper .urlop-signatures-section,
html body .urlop-express-form-wrapper .urlop-employee-signature,
html body .urlop-express-form-wrapper .urlop-employer-signature {
    display: none !important;
}
