/**
 * 2025-11-25 - Mandar - Modern credit application form styling with #337ab7 gradient theme
 * This removes the purple background and applies clean, professional styling
 */

/* Reset and override default Bootstrap purple/ugly styling */
body
{
   font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   background: #f5f7fa !important;
   min-height: 100vh;
   padding: 20px 0;
}

/* Override any purple backgrounds */
.panel-primary,
.panel-info,
[style*="background: purple"],
[style*="background-color: purple"]
{
   background: transparent !important;
}

/* Main container */
.credit-app-container
{
   max-width: 1200px;
   margin: 0 auto;
   background: white;
   border-radius: 15px;
   box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
   overflow: hidden;
}

/* Header styling */
.credit-app-header
{
   background: linear-gradient(135deg, #337ab7 0%, #2c5f8d 100%);
   color: white;
   padding: 40px 30px;
   text-align: center;
}

.credit-app-header img
{
   max-width: 250px;
   height: auto;
   margin-bottom: 20px;
   background: white;
   padding: 15px;
   border-radius: 10px;
}

.credit-app-header h1
{
   margin: 0;
   font-size: 32px;
   font-weight: 600;
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Panel/Section styling - PREMIUM MODERN DESIGN */
.panel
{
   border: none !important;
   box-shadow: none !important;
   background: transparent !important;
   margin-bottom: 30px !important;
}

.panel-default
{
   border: none !important;
   background: white !important;
   border-radius: 12px !important;
   overflow: hidden;
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

.panel-heading
{
   background: linear-gradient(135deg, #337ab7 0%, #2c5f8d 100%) !important;
   color: white !important;
   border: none !important;
   border-radius: 0 !important;
   padding: 18px 25px !important;
   margin-bottom: 0 !important;
   box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05) !important;
   position: relative;
}

.panel-heading::before
{
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 5px;
   height: 100%;
   background: rgba(255, 255, 255, 0.3);
}

.panel-heading h4
{
   color: white !important;
   font-size: 18px !important;
   font-weight: 700 !important;
   margin: 0 !important;
   text-transform: uppercase;
   letter-spacing: 1px;
   font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.panel-body
{
   padding: 30px 25px !important;
   background: white !important;
}

/* Form groups and labels - MODERN & FRESH STYLING */
.form-group
{
   margin-bottom: 20px !important;
}

.form-group label,
label
{
   display: block !important;
   margin-bottom: 8px !important;
   color: #1a252f !important;
   font-weight: 600 !important;
   font-size: 14px !important;
   text-transform: none !important;
   letter-spacing: 0.3px !important;
   font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Removed blue gradient bars - cleaner label design */

.form-group label.required::after
{
   content: ' *';
   color: #e74c3c;
   font-weight: 700;
}

/* Form controls - ENHANCED MODERN STYLING */
.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea
{
   width: 100% !important;
   padding: 12px 15px !important;
   border: 2px solid #dce1e6 !important;
   border-radius: 10px !important;
   font-size: 15px !important;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
   box-sizing: border-box !important;
   background: #fafbfc !important;
   color: #1a252f !important;
   font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.form-control:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover
{
   border-color: #c5cdd4 !important;
   background: white !important;
}

.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus
{
   border-color: #337ab7 !important;
   outline: none !important;
   box-shadow: 0 0 0 4px rgba(51, 122, 183, 0.12), 0 2px 8px rgba(51, 122, 183, 0.08) !important;
   background: white !important;
   transform: translateY(-1px) !important;
}

/* Select dropdowns - FIXED TEXT CUTOFF */
select.form-control
{
   cursor: pointer;
   appearance: none;
   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='%23337ab7' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
   background-repeat: no-repeat !important;
   background-position: right 15px center !important;
   padding-right: 45px !important;
   text-overflow: ellipsis !important;
   white-space: nowrap !important;
   overflow: hidden !important;
   line-height: 1.5 !important;
   height: auto !important;
   min-height: 46px !important;
}

select.form-control option
{
   padding: 10px 8px !important;
   background: white !important;
   color: #1a252f !important;
   line-height: 1.6 !important;
   min-height: 40px !important;
}

/* Error states */
.has-error .form-control,
.has-error input[type="text"],
.has-error input[type="password"],
.has-error select
{
   border-color: #e74c3c !important;
}

.help-block
{
   color: #e74c3c;
   font-size: 13px;
   margin-top: 5px;
}

/* Row spacing */
.row
{
   margin-left: -10px !important;
   margin-right: -10px !important;
}

.row > div[class*="col-"]
{
   padding-left: 10px !important;
   padding-right: 10px !important;
}

/* Sub-headings within sections */
.panel-body h4
{
   color: #337ab7;
   font-size: 18px;
   font-weight: 600;
   margin-top: 25px;
   margin-bottom: 15px;
   padding-bottom: 8px;
   border-bottom: 2px solid #e8ecef;
}

.panel-body p[style*="color:blue"],
.panel-body p[style*="color: blue"]
{
   color: #337ab7 !important;
   font-weight: 600 !important;
   font-size: 16px !important;
   margin-top: 20px !important;
   margin-bottom: 15px !important;
}

/* Horizontal rules */
hr
{
   border: 0;
   height: 2px;
   background: linear-gradient(to right, transparent, #e8ecef, transparent);
   margin: 25px 0;
}

/* Checkboxes */
input[type="checkbox"]
{
   width: 20px !important;
   height: 20px !important;
   cursor: pointer !important;
   margin-right: 10px !important;
}

.checkbox label
{
   display: flex !important;
   align-items: center !important;
   font-weight: 500 !important;
}

/* Consent section */
.panel-body strong
{
   color: #2c3e50;
   font-size: 16px;
   display: block;
   margin-top: 15px;
   margin-bottom: 10px;
}

.panel-body ul
{
   padding-left: 25px;
   margin-bottom: 20px;
}

.panel-body ul li
{
   margin-bottom: 8px;
   line-height: 1.6;
   color: #5a6c7d;
}

.panel-body span[style*="font-size: 12px"]
{
   font-size: 14px !important;
   color: #5a6c7d !important;
   line-height: 1.6 !important;
}

/* Submit button - PREMIUM MODERN DESIGN */
.btn-primary,
input[type="submit"].btn-primary
{
   background: linear-gradient(135deg, #337ab7 0%, #2c5f8d 100%) !important;
   border: none !important;
   color: white !important;
   padding: 16px 70px !important;
   border-radius: 12px !important;
   font-size: 18px !important;
   font-weight: 700 !important;
   cursor: pointer !important;
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
   text-transform: uppercase;
   letter-spacing: 1.5px;
   box-shadow: 0 4px 14px rgba(51, 122, 183, 0.35) !important;
   position: relative;
   overflow: hidden;
   font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.btn-primary::before,
input[type="submit"].btn-primary::before
{
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
   transition: left 0.5s;
}

.btn-primary:hover,
input[type="submit"].btn-primary:hover
{
   background: linear-gradient(135deg, #2c5f8d 0%, #1e4a6f 100%) !important;
   transform: translateY(-3px) !important;
   box-shadow: 0 8px 25px rgba(51, 122, 183, 0.5) !important;
}

.btn-primary:hover::before,
input[type="submit"].btn-primary:hover::before
{
   left: 100%;
}

.btn-primary:active,
input[type="submit"].btn-primary:active
{
   transform: translateY(-1px) !important;
   box-shadow: 0 4px 14px rgba(51, 122, 183, 0.35) !important;
}

/* Footer */
.footer
{
   background: #2c3e50;
   color: #ecf0f1;
   padding: 20px;
   text-align: center;
   margin-top: 40px;
   border-radius: 0 0 15px 15px;
}

.footer p
{
   margin: 0;
   font-size: 13px;
}

.footer a
{
   color: #3498db;
   text-decoration: none;
}

.footer a:hover
{
   color: #2980b9;
   text-decoration: underline;
}

/* Responsive design */
@media (max-width: 991px)
{
   .credit-app-container
   {
      margin: 10px;
      border-radius: 10px;
   }

   .credit-app-header
   {
      padding: 30px 20px;
   }

   .credit-app-header h1
   {
      font-size: 26px;
   }

   .panel-body
   {
      padding: 20px 15px !important;
   }

   .btn-primary,
   input[type="submit"].btn-primary
   {
      padding: 12px 40px !important;
      font-size: 16px !important;
   }
}

@media (max-width: 768px)
{
   body
   {
      padding: 10px 0;
   }

   .credit-app-header
   {
      padding: 20px 15px;
   }

   .credit-app-header h1
   {
      font-size: 22px;
   }

   .panel-heading h4
   {
      font-size: 18px !important;
   }

   .form-control,
   input[type="text"],
   input[type="password"],
   input[type="email"],
   select
   {
      font-size: 16px !important;
   }

   .row > div[class*="col-"]
   {
      margin-bottom: 15px;
   }
}

/* Hidden elements */
#previous-address-1[style*="display: none"],
#current-employment[style*="display: none"]
{
   display: none !important;
}

/* Vehicle of Interest section */
.row.container > div > b
{
   color: #337ab7 !important;
   font-size: 18px !important;
   font-weight: 600 !important;
}

/* Ensure consistent spacing */
.panel:last-of-type
{
   margin-bottom: 0 !important;
}

/* Kartik checkbox widget override */
.checkbox-x
{
   font-size: 24px !important;
}

.checkbox-x .cbx-label
{
   font-weight: 600 !important;
   color: #2c3e50 !important;
   font-size: 16px !important;
}
