/* Apply Form - Additional Styles */
.applyForm .organizationType {
    display:flex;
    justify-content: center;
    gap: 6rem;                 /* ADDED: Large gap between buttons */
}

.organizationType i{
    font-size:50px;
    padding:1rem;
}
.organizationType button{
    padding: 2rem 3rem;        /* CHANGED: from 1.5rem 2rem - larger buttons */
    width: 180px;              /* CHANGED: from 150px - wider buttons */
    font-size: 18px;           /* CHANGED: from 16px - more prominent */
    border: 3px solid var(--logoCyan); /* CHANGED: from 2px - more visible */
    border-radius: 1rem;       /* CHANGED: from .75rem - more rounded */
    box-shadow: 0 4px 15px rgba(46, 191, 165, 0.2); /* ADDED: Shadow */
    outline: none;
    margin: 0 4rem;            /* CHANGED: from 2rem - much more spacing between buttons */
    cursor: pointer;
    font-weight: 600;
}
.organizationTypeButton{
    color: var(--logoCyan);
    background-color: white;
}
.organizationType button:hover, .organizationType button:visited{
    background-color: var(--logoCyan);
    color: white;
}
.organizationFocus{
    background-color: var(--logoCyan);
    color: white;
}
.applyForm h2, .applyForm p{
    text-align: center;
    padding:1rem;
}
.applyForm ul, .applyForm ol{
    margin:2rem;
}
.applyForm h1{
    width: 100% !important;
    font-size:35px !important;
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
}
.applyForm h2{
    font-weight: 300;
    color:var(--logoBlue);
    padding-bottom:3rem;
    position:relative;
}
.applyForm h2:after{
    position:absolute;
    bottom:0;
    left:25%;
    height:4px;
    width:50%;
    background:rgb(216, 216, 216);
    content:"";
}

.ul-min-margin{
    margin: 1rem 2rem !important;
}

.applyForm p, .paragraphText{
    color:rgb(82, 82, 82);
    font-size:20px;
    position: relative;
    padding-bottom: 3rem;
}

.paragraphText {
    padding: 0 1rem;
}

.paragraphText ol li {
    margin-bottom: 1rem;
}

.applyForm p:after{
    position:absolute;
    bottom:0;
    left:25%;
    height:4px;
    width:50%;
    background:rgb(216, 216, 216);
    content:"";
}
.applyForm button{
    margin:1rem auto;
    width:35vw;
    max-width:20ch;
    cursor: pointer;
}
.applyForm legend{
    padding: 1.5rem 3rem;
    text-align: center;
    width: fit-content;
    background: linear-gradient(135deg, var(--logoBlue), #0056b3);
    border-radius: 2rem;
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 3rem auto;
    box-shadow: 0 8px 25px rgba(8, 106, 176, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.applyForm legend::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.6s ease;
}

.applyForm legend:hover::before {
    left: 100%;
}

#apply-form {
    display: flex;
    justify-content: center;
}

.applyForm fieldset {
    margin: 1rem auto;         /* CHANGED: from 2rem auto - tighter spacing */
    max-width: 600px;          /* CHANGED: Reduced from 700px - better fit */
    width: 90%;                /* CHANGED: Reduced from 95% - more breathing room */
    padding: 2rem;             /* CHANGED: Reduced from 2.5rem - better spacing */
    box-shadow: 0 8px 32px rgba(0,0,0,0.1); /* ENHANCED: Deeper shadow */
    border-radius: 1.5rem;     /* CHANGED: from 1rem - more rounded */
    background: white;         /* ADDED: Ensures white background */
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
}
.applyForm select{
    width:100%;
    margin:1rem 0;
    padding:.5rem;
    border-radius: 5px;
    border:1px solid #ddd;
}

/* Removed old confirmEmailText class - now using .required class */
.applyForm input,#comments{
    font-size: 16px;           /* CHANGED: from 18px - better proportion */
    width: 90%;                /* CHANGED: Reduced from 95% - more breathing room */
    margin: 0.75rem auto 2rem auto; /* CHANGED: More spacing around inputs */
    padding: 1rem;             /* CHANGED: Increased from 0.75rem - better touch targets */
    border-radius: 0.75rem;    /* CHANGED: from .5rem - more rounded */
    border: 2px solid var(--logoBlue); /* CHANGED: from #e9ecef - blue outline */
    background: #f8f9fa;       /* ADDED: Light background for better UX */
    transition: all 0.3s ease; /* ADDED: Smooth animations */
}

/* Focus Effects (New features) */
.applyForm input:focus, #comments:focus {
    outline: none;             /* Remove default browser outline */
    border-color: var(--logoBlue); /* Blue border on focus */
    box-shadow: 0 0 0 3px rgba(8, 106, 176, 0.15); /* Blue glow */
    background: white;         /* White background when focused */
    transform: translateY(-1px); /* Subtle lift effect */
}

/* Remove green highlight on valid inputs */
.applyForm input:valid {
    border-color: var(--logoBlue);
    background: white;
}

/* Field Groups - Better spacing and organization */
.field-group {
    margin-bottom: 2.5rem;
    text-align: left;
    padding: 0 1rem;
}

.field-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--logoBlue);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.applyForm .commentSection{
    position:relative;
    margin:1rem 0;
}
/* Old textCounter positioning removed - now positioned inside textarea */

#comments{
    padding:1rem;
}

.applyForm .required{
    color:red;
}
.applyForm .operatingSystem{
    margin:1rem 0;
}
.operatingSystem div{
    margin:.5rem 0;
}
.operatingSystem input{
    width:1rem;
    height:1rem;
    margin-right:1rem;
}

.operatingSystem label{
    margin:0;
    cursor: pointer;
}
.applyForm .doYouNeed{
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); /* ADDED: Gradient */
    border-radius: 1rem;       /* CHANGED: from .5rem - more rounded */
    border: 1px solid #dee2e6; /* ADDED: Subtle border */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); /* ADDED: Inner shadow */
    margin:1rem 0;
}
.doYouNeed div{
    margin:1rem 0;
    padding: 0.5rem;
    transition: all 0.3s ease; /* ADDED: Smooth transitions */
}

/* Hover Effect (New feature) */
.doYouNeed div:hover {
    transform: translateY(-1px); /* Subtle lift on hover */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Enhanced shadow */
}
.doYouNeed label{
    margin:0;
}
.doYouNeed input{
    margin:0.75rem;
    padding:0.75rem;
    height:auto;
    width:100px;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
}
.doYouNeed .checkbox, .taxReceipt .checkbox{
    width:1rem;
    height:1rem;
    margin:0 1rem 0 0;
}
.taxReceipt {
    margin-bottom: 1rem;
}
.taxReceipt label{
    margin-left: initial;
}

.orderPlaced{
    max-width: 600px;
    width: 90%;
    margin: 5% auto;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #28a745;
    text-align: center;
    color: #333;
}

.orderPlaced .success-icon {
    margin-bottom: 2rem;
}

.orderPlaced .success-icon i{
    color: #28a745;
    font-size: 5rem;
    text-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.orderPlaced h2{
    color: #28a745;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.orderPlaced p{
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
}

.orderPlaced .success-details{
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 1px solid #28a745;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.orderPlaced .success-details p{
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #2d5a2d;
}

.orderPlaced .next-steps{
    background: linear-gradient(135deg, #d1ecf1 0%, #e2f3f5 100%);
    border: 1px solid #17a2b8;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #0c5460;
}

.orderPlaced .back-button{
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--logoBlue) 0%, #1e3c72 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(8, 106, 176, 0.3);
}

.orderPlaced .back-button:hover{
    background: linear-gradient(135deg, #1e3c72 0%, var(--logoBlue) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(8, 106, 176, 0.4);
    color: white;
}
.language{
    width: fit-content;
    margin-right:0;
    margin-bottom: 1rem;
    text-align: right;
}
#language{
    text-align: right;
    display:inline;
    position: relative;
    right:.5rem;
    border:1px solid #ddd;
    padding:.5rem;
    border-radius: .25rem;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}
.applyForm .errorzeropolicy , .windowsNotice, .selectionNotice, .noOS , .non-profitNotice{
    color:red;
    text-align: center;
    margin-bottom: 1rem;
}

/* Simplified Operating System Selection */
.operatingSystem {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 1rem;
    margin: 1rem 0;
}

.operatingSystem div {
    margin: 0.5rem 0;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.operatingSystem div:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.operatingSystem input[type="radio"] {
    width: 1.5rem;
    height: 1.5rem;
    accent-color: var(--logoBlue);
    margin: 0;
    cursor: pointer;
}

.operatingSystem label {
    margin: 0;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.operatingSystem select {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.operatingSystem select:focus {
    border-color: var(--logoBlue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

/* Simplified Comment Section */
.commentSection {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 1rem;
    margin: 1rem auto;
    max-width: 800px;
    text-align: center;
}

.commentSection label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.commentSection label[for="comments"] {
    margin-bottom: 1rem;
}

/* Remove global textCounter positioning - handled in individual components */

/* Make the form container relative for textCounter positioning */
.applyForm {
    position: relative;
}

/* Comments section container */
.comments-container {
    position: relative;
    margin-bottom: 1rem;
}

/* Comments label positioning */
label[for="comments"] {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* School form comment section */
.commentSection {
    position: relative;
    margin-bottom: 1rem;
}

.commentSection label[for="comments"] {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Position textCounter inside the textarea at bottom-right */
.commentSection {
    position: relative !important;
}

/* Force textCounter inside textarea - match apply page style */
.commentSection .textCounter,
div.commentSection div.textCounter,
.applyForm .commentSection .textCounter,
.store .commentSection .textCounter,
div[style*="position: relative"] .textCounter {
    position: absolute !important;
    /* Position inside the box - bottom-right inside textarea */
    bottom: 12px !important;
    right: 12px !important;
    color: var(--logoBlue) !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    background: transparent !important;
    padding: 0 !important;
    z-index: 100 !important;
    pointer-events: none !important;
    margin: 0 !important;
    /* Completely override any old positioning */
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: block !important;
}

#comments {
    width: 100%;
    min-height: 120px;
    padding: 1rem 1.2rem;
    padding-bottom: 3rem;
    border: 2px solid var(--logoBlue);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: vertical;
    font-family: inherit;
    margin-top: 1rem;
    position: relative;
}

#comments:focus {
    outline: none;
    border-color: var(--logoBlue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Ensure proper borders on form elements */
.applyForm input,
.applyForm select,
.applyForm textarea,
#comments {
    border: 2px solid var(--logoBlue) !important;
    border-radius: 8px !important;
}

.operatingSystem div,
.doYouNeed div,
.agreement-label {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
}

/* Remove any red highlights on valid inputs */
.applyForm input:valid,
.applyForm select:valid,
.applyForm textarea:valid,
#comments:valid {
    border-color: var(--logoBlue) !important;
    background: white !important;
    box-shadow: none !important;
}

/* Ensure proper spacing for the form sections */
.applyForm > div {
    margin-bottom: 2rem;
}

/* Simplified warranty section styling */
.applyForm p[style*="border-radius"] {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: inherit;
    line-height: 1.6;
}

/* Simplified zero tolerance checkbox section */
.applyForm div[style*="text-align: right"] {
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left !important;
}

/* School and Non-Profit form sections */
        .school, .nonProfit {
            display: block;
            margin: 1rem 0;
        }

.school.hidden, .nonProfit.hidden {
    display: none !important;
}

/* Removed clipboard icon */

.applyForm div[style*="text-align: right"] > div {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.applyForm div[style*="text-align: right"] input[type="checkbox"] {
    width: 1.5rem !important;
    height: 1.5rem !important;
    margin: 0 !important;
    accent-color: var(--logoBlue) !important;
}

.applyForm div[style*="text-align: right"] label {
    margin: 0 !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    cursor: pointer !important;
}

.applyForm div[style*="text-align: right"] a {
    color: var(--logoBlue) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

.applyForm div[style*="text-align: right"] a:hover {
    color: #0056b3 !important;
    border-bottom-color: #0056b3 !important;
}

/* Accessibility improvements */
.applyForm input:focus,
.applyForm select:focus,
.applyForm textarea:focus {
    outline: 2px solid var(--logoBlue);
    outline-offset: 2px;
}

/* Ensure proper contrast for required asterisks */
.applyForm .required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 0.25rem;
    text-shadow: none;
}

/* Fix for screen readers */
.applyForm label[for] {
    cursor: pointer;
}

/* Ensure form elements are properly sized for touch */
.applyForm input[type="checkbox"],
.applyForm input[type="radio"] {
    min-width: 1.2rem;
    min-height: 1.2rem;
}

/* Prevent text selection on buttons */
.organizationTypeButton {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
