/**
 * Modern Warranty Form Styling
 */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #ffff;
}

/* Header Styles */
#header {
    width: 100%;
    background-color: #ffff;
    border-bottom: 1px solid #ffff;
    padding: 15px 0;
}

.header_row {
    width: 100%;
    max-width: 1200px;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: auto;
    background-color: transparent;
}

.logo {
    display: inline-block;
    background-color: transparent;
    width: 100%;
    /*max-width: 1200px;*/
    margin: 0;
    padding: 0px 20px 0px;
    text-align: left;
}

.logo img {
    max-width: 200px;
    height: auto;
}

/* Main Container */
#main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: left;
    background-color: #fff;
    min-height: calc(100vh - 200px);
}

#setwidth {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
    background-color: transparent;
}

/* Typography */
h1 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding: 0;
    line-height: 1.2;
}

h3 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 30px 0 20px 0;
    padding: 0;
    position: relative;
    left: 0;
}

.intro {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.thankyou {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    /*font-weight: bold;*/
    text-decoration: none;
    text-align: center;
}

label {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

label span[aria-label="required"] {
    color: #d32f2f;
    margin-left: 3px;
}

/* Floating Label Styles */
.floating-label-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.floating-label-wrapper label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #999;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s ease;
    background-color: #fff;
    padding: 0 5px;
    margin: 0;
    z-index: 1;
}

.floating-label-wrapper label span[aria-label="required"] {
    color: #d32f2f;
    margin-left: 3px;
}

.floating-label-wrapper input:focus + label,
.floating-label-wrapper input:not(:placeholder-shown) + label,
.floating-label-wrapper.has-value label,
.floating-label-wrapper.focused label {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: #0066cc;
    font-weight: 500;
    background-color: #fff;
}

.floating-label-wrapper input:focus + label {
    color: #0066cc;
}

.floating-label-wrapper.error label {
    color: #d32f2f;
}

.floating-label-wrapper.error input:focus + label {
    color: #d32f2f;
}

/* Form Layout */
.row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 0;
}

.col {
    flex: 1;
    min-width: 200px;
    padding: 0;
    margin: 0;
}

.col-1 {
    flex: 0 0 100%;
}

.col-2 {
    flex: 0 0 calc(50% - 10px);
}

.col-3 {
    flex: 0 0 calc(33.333% - 14px);
}

/* Form Inputs */
.txt_input,
.select_input_col {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #333;
    background-color: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    transition: all 0.3s ease;
    outline: none;
}

/* Floating label inputs need padding-top adjustment */
.floating-label-wrapper .txt_input,
.floating-label-wrapper .select_input_col,
.floating-label-wrapper .txt_input_err,
.floating-label-wrapper .select_input_err {
    padding-top: 18px;
    padding-bottom: 6px;
}

.floating-label-wrapper.error .txt_input_err,
.floating-label-wrapper.error .select_input_err {
    background-color: #fff5f5;
}

.txt_input:focus,
.select_input_col:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
}

.txt_input:hover,
.select_input_col:hover {
    border-color: #999;
}

.txt_input::placeholder {
    color: #999;
}

/* Error States */
.txt_input_err,
.select_input_err {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #333;
    background-color: #fff5f5;
    border: 1px solid #f44336;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.txt_input_err:focus,
.select_input_err:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
    outline: none;
}

.error-message {
    display: block;
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 400;
}

/* Select Dropdowns */
select.txt_input,
select.select_input_col,
select.select_input_err {
    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='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Textarea */
textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #333;
    background-color: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}

textarea:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
}

/* Radio Buttons */
input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #0066cc;
}

input[type="radio"] + label {
    display: inline;
    font-weight: 400;
    margin-left: 0;
    cursor: pointer;
}

/* Submit Button */
input[type="submit"] {
    background-color: #FFC31A;
    border: 1px solid #233C28;
    color: #233C28;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    height: auto;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

input[type="submit"]:hover {
    background-color: #ffd666;
    transform: translateY(-1px);
    border-color: #233C28;
    /*box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);*/
}

input[type="submit"]:active {
    transform: translateY(0);
   /*box-shadow: 0 2px 4px rgba(0, 102, 204, 0.2);*/
}

input[type="submit"]:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* Conair / BabylissPro / Dannyco submit button (alternate design – dark, used when class btn-submit-alt is applied) */
input[type="submit"].btn-submit-alt {
    background-color: #e0e0e0;
    border: 2px solid #e0e0e0;
    color: #1a1a1a;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 150px;
    height: auto;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

input[type="submit"].btn-submit-alt:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

input[type="submit"].btn-submit-alt:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

input[type="submit"].btn-submit-alt:focus {
    outline: 2px solid #666;
    outline-offset: 2px;
}

/* Language Link */
.lang_link {
    font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s ease;
	float: right;
	text-decoration: none;
	position: relative; 
	right: 0px;
	top: 25px;
}

.lang_link:hover {
    color: #233C28;
    background-color: #ffff;
}

/* Spacers */
.spacer_10 {
    height: 10px;
    clear: both;
}

.spacer_20 {
    height: 20px;
    clear: both;
}

.spacer_30 {
    height: 30px;
    clear: both;
    background-color: transparent;
}

.spacer_40 {
    height: 30px;
    clear: both;
}

.spacer_50 {
    height: 1px;
    background-color: #233C28;
    clear: both;
    margin: 0;
}

.spacer_60 {
    height: 1px;
    background-color: #1a1a1a;
    clear: both;
    margin: 0;
}

/* Info Section */
.info {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
}

.info h3 {
    margin-top: 0;
    color: #1a1a1a;
}

/* Block newsletter (opt-in checkbox + terms text, used by BabylissPro / Conair-style forms) */
.blocknewsletter {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.blocknewsletter input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-error {
    background-color: #fff5f5;
    border-color: #f44336;
    color: #c62828;
}

.alert-success {
    background-color: #f1f8e9;
    border-color: #4caf50;
    color: #2e7d32;
}

/* Survey Specific Styles */
#survey_bg {
    display: none; /* Hide on mobile, show on desktop if needed */
}

.input_box {
    width: auto;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background-color: #fff;
}

.infolink {
    display: inline-block;
    margin-left: 5px;
    text-decoration: none;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    #main {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .row {
        flex-direction: column;
        gap: 0;
    }
    
    .col,
    .col-1,
    .col-2,
    .col-3 {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .info {
        padding: 20px 15px;
    }
    
    input[type="submit"],
    input[type="submit"].btn-submit-alt {
        width: 100%;
    }
    
    #survey_bg {
        display: none;
    }
}

@media only screen and (max-width: 480px) {
    h1 {
        font-size: 20px;
    }
    
    .intro {
        font-size: 14px;
    }
    
    label {
        font-size: 13px;
    }
    
    .txt_input,
    .select_input_col,
    .txt_input_err,
    .select_input_err {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .header_row,
    .lang_link,
    input[type="submit"] {
        display: none;
    }
    
    #main {
        padding: 0;
    }
}

/* Accessibility Improvements */
*:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .txt_input,
    .select_input_col {
        border-width: 2px;
    }
    
    input[type="submit"],
    input[type="submit"].btn-submit-alt {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

