:root { 
  /* Color palette */
  --primary-color: #4CAF50;
  --primary-hover: #45a049;
  --secondary-color: #999;
  --secondary-hover: #777;
  --error-color: #4CAF50;
  --error-light: #ffebee;
  --success-color: #28a745;
  --success-light: #c8e6c9;
  --warning-color: #f44336;
  
  /* Background colors */
  --bg-primary: #f6f8fa;
  --bg-white: #fff;
  --bg-light: #f9f9f9;
  --bg-lighter: #f0f0f0;
  --bg-input-readonly: #f0f0f0;
  --bg-input-valid: #eaffea;
  --bg-payment-instructions: #f0f7ff;
  --bg-captcha: #eee;
  
  /* Text colors */
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #555;
  --text-disabled: #c00;
  
  /* Border colors */
  --border-primary: #ddd;
  --border-secondary: #ccc;
  --border-valid: #4CAF50;
  
  /* Shadow colors */
  --shadow-color: rgba(0,0,0,0.1);
  --shadow-dark: rgba(0,0,0,0.3);
  --shadow-primary: rgba(76, 175, 80, 0.3);
  --shadow-primary-light: rgba(76, 175, 80, 0.7);
  
  /* Overlay colors */
  --overlay-bg: rgba(255,255,255,0.8);
  --modal-overlay: rgba(0, 0, 0, 0.5);
  --error-overlay: rgba(0, 0, 0, 0.7);
  
  /* Animation and transition */
  --transition: all 0.3s ease;
  --transition-slow: all 0.4s ease-in-out;
  --shadow: 0 4px 20px var(--shadow-color);

  /* Piro additional colors */
  --radio-select-color:#ffffff;

  /* Default opacity for input elements */
  --input-opacity: 0.8; 
}


[data-theme="dark"] { 
    /* Color palette */
    --primary-color: #111418;
    --primary-hover: #ff3399;
    --secondary-color: #b0b6c0;
    --secondary-hover: #8a909a;
    --error-color: #ffffff;
    --error-light: #2a1a1a;
    --success-color: #ffffff;
    --success-light: #1a2a0a;
    --warning-color: #ffd900;
    
    /* Background colors */
    --bg-primary: #0a0f1f;
    --bg-white: #1a1f2f;
    --bg-light: #141926;
    --bg-lighter: #1e2436;
    --bg-input-readonly: #1e2436;
    --bg-input-valid: #1a2a0a;
    --bg-payment-instructions: #0f1a2f;
    --bg-captcha: #1e2436;
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b6c0;
    --text-light: #8a909a;
    --text-disabled: #ff5252;
    
    /* Border colors */
    --border-primary: #2a3040;
    --border-secondary: #3a4050;
    --border-valid: #ffffff;
    
    /* Shadow colors */
    --shadow-color: rgba(0,0,0,0.4);
    --shadow-dark: rgba(0,0,0,0.6);
    --shadow-primary: rgba(255, 0, 127, 0.3);
    --shadow-primary-light: rgba(255, 0, 127, 0.7);
    
    /* Overlay colors */
    --overlay-bg: rgba(10, 15, 31, 0.8);
    --modal-overlay: rgba(0, 0, 0, 0.7);
    --error-overlay: rgba(0, 0, 0, 0.8);
    
    /* Animation and transition */
    --transition: all 0.3s ease;
    --transition-slow: all 0.4s ease-in-out;
    --shadow: 0 4px 20px var(--shadow-color);

    /* Piro additional colors */
    --radio-select-color:#111418;


    /* Default opacity for input elements */
    --input-opacity: 0.7; 
}



/* Chrome, Safari, Edge */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-primary);
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-light) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Firefox */
input:-moz-autofill,
input:-moz-autofill:hover,
input:-moz-autofill:focus,
textarea:-moz-autofill,
textarea:-moz-autofill:hover,
textarea:-moz-autofill:focus,
select:-moz-autofill,
select:-moz-autofill:hover,
select:-moz-autofill:focus {
    background-color: var(--bg-light);
    color: var(--text-primary);
}



body {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    background: var(--bg-primary);
    margin: 0;
    padding: 0;
    color: var(--text-primary); /* Added to ensure all text is visible */
}

.form-container {
    position: relative;
    background-size: 100% auto;
    background-position: 0 0;
    background-repeat: repeat;
    width: 90%;
    max-width: 800px;
    min-width: 300px;
    margin: 2vh auto;
    padding: 3vh 4vw;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    background-color: var(--bg-white); /* Added to ensure contrast */
    transition: 
        height 0.4s ease-in-out, 
        min-height 0.4s ease-in-out,
        padding 0.4s ease-in-out;
    will-change: height;
    transform: translateZ(0);
}

h1, h2, h3 {
    text-align: center;
    color: var(--text-primary); /* Explicitly set text color */
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

.form-step {
    display: none;
    animation-duration: 0.4s;
    animation-fill-mode: both;
    transition: opacity 0.3s ease, transform 0.4s ease;
    backface-visibility: hidden;
}

.form-step.active {
    display: block;
}

.option-box {
    background: var(--bg-light);
    border: 2px solid var(--border-primary);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    color: var(--text-primary); /* Explicitly set text color */
}

.option-box.active {
    font-weight: bold;
}

.option-box.active:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.option-box.inactive {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
    transition: opacity 0.3s ease;
}

.option-box.show-message .disabled-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: var(--text-disabled);
    font-weight: bold;
    pointer-events: none;
}

.option-box.show-message:hover .disabled-message {
    opacity: 1;
    transition: opacity 0.7s ease;
}

.option-box.show-message:hover .option-text {
    opacity: 0.1;
    transition: opacity 0.7s ease;
}

.option-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.option-text {
    font-size: 1em;
    font-weight: bold;
    color: var(--text-primary); /* Explicitly set text color */
}

.option-description {
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-top: 5px;
    line-height: 1.3;
    white-space: pre-line;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.option-box.pulse {
    animation: pulse 0.6s;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-primary); /* Explicitly set text color */
}

.req-asterisk {
    color: var(--error-color);
    margin-left: 4px;
}

.form-caption, input, select, button {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    border-radius: 6px;
    border: 1px solid var(--border-secondary);
    box-sizing: border-box;
    font-family: 'Josefin Sans', sans-serif;
    background-color: var(--bg-white); /* Set background */
    color: var(--text-primary); /* Set text color */
}


.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    cursor: pointer;
    background: var(--bg-white);
    color: var(--text-primary);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option span {
    user-select: none;
}

.radio-option input[type="radio"]:checked + span {
    background: var(--radio-select-color);
    color: var(--text-primary);
    border-radius: 20px;
    padding: 5px 10px;
    border: 3px solid var(--text-primary);
    /* border-color: var(--border-valid) !important; */
    animation: pulse 1.0s ease;
    
}

/* FIXED: Input validation background color */
input.input-valid, select.input-valid, .radio-option.input-valid {
    background-color: var(--bg-white) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-valid) !important;
}

button {
    background: var(--primary-color);
    color: var(--text-primary);
    border: none;
    cursor: pointer;
}

button:hover {
    background: var(--primary-hover);
}

.back-button {
    background: var(--secondary-color);
    margin-top: 10px;
}

.back-button:hover {
    background: var(--secondary-hover);
}

button[type="submit"]:disabled {
    background-color: var(--border-secondary);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none !important;
}

button[type="submit"]:disabled:hover {
    background-color: var(--border-secondary);
}

.register-btn {
    transition: var(--transition);
    position: relative;
}

.register-btn:enabled {
    background-color: var(--primary-hover);
    animation: pulse-enable 0.5s ease;
}

@keyframes pulse-enable {
    0% { transform: scale(1); box-shadow: 0 0 0 0 var(--shadow-primary-light); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { transform: scale(1); }
}

.register-btn:disabled {
    background-color: var(--border-secondary);
    cursor: not-allowed;
}

.register-btn:enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.error {
    color: var(--error-color);
    text-align: center;
    margin-bottom: 10px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.slide-in-right { animation-name: slideInRight; }
.slide-out-left { animation-name: slideOutLeft; }
.slide-in-left { animation-name: slideInLeft; }
.slide-out-right { animation-name: slideOutRight; }

#gifOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--overlay-bg);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

#gifOverlay img {
    width: min(600px, 40vw);
    height: auto;
    object-fit: contain;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.typewriter-phase {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary-color);
    opacity: 0;
    animation:
        fadeIn 0.1s ease forwards,
        typing 1.5s steps(40, end) forwards,
        blink-caret 0.75s step-end infinite;
}

.bounce-phase {
    animation: gentle-bounce 1.2s ease-in-out infinite alternate;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gentle-bounce {
    0% { transform: translateY(0); opacity: 0.75; }
    100% { transform: translateY(-8px); opacity: 1; }
}

input[readonly] {
    background-color: var(--bg-input-readonly);
    cursor: not-allowed;
    color: var(--text-secondary); /* Added text color */
}

input[readonly].used-code {
    background-color: var(--error-light);
    color: var(--error-color); /* Added text color */
}

.header-divider {
    height: 2px;
    background: var(--border-primary);
    margin: 10px 0 20px;
}

.captcha-box {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.captcha-code {
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 2px;
    background: var(--bg-captcha);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-secondary);
    flex: 1;
    text-align: center;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
    color: var(--text-primary); /* Explicitly set text color */
}

.captcha-code::selection {
    background: transparent;
}

.captcha-code::-moz-selection {
    background: transparent;
}

.captcha-input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid var(--border-secondary);
    box-sizing: border-box;
    font-family: 'Josefin Sans', sans-serif;
    min-height: 22px;
    letter-spacing: 2px;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    background-color: var(--bg-white);
    color: var(--text-primary);
}

@keyframes captchaRefresh {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.captcha-refreshing {
    animation: captchaRefresh 0.5s ease;
}

.captcha-valid { 
    color: var(--text-primary);
    background-color: var(--bg-white);
}

.captcha-input, .captcha-label {
    transition: color 0.5s ease, background-color 0.5s ease;
}

.captcha-correct {
    color: var(--text-primary);
    background-color: var(--bg-white);
}

.captcha-label {
    display: inline-block;
    white-space: nowrap;
    color: var(--text-primary); /* Explicitly set text color */
}

.captcha-input.pulse-verified {
    animation: 
        pulse-verification 0.6s ease,
        gentle-bounce 0.8s ease;
}

@keyframes pulse-verification {
    0% { box-shadow: 0 0 0 0 var(--shadow-primary-light); }
    70% { box-shadow: 0 0 0 12px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.modal {
    padding: 20px;
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--modal-overlay);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow);
    color: var(--text-primary); /* Explicitly set text color */
}

.modal-control {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--error-color);
    color: var(--bg-white);
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: var(--transition);
}

.modal-control:hover {
    transform: scale(1.2);
}

#close_terms:hover {
    color: var(--error-color);
    transform: scale(1.2) rotate(360deg);
}

#scroll_down:hover {
    color: var(--primary-color);
    transform: translateY(5px) scale(1.2) rotate(360deg);
}

.terms-container {
    margin: 15px 0;
}

.fancy-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

}

.fancy-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    border-color: var(--primary-hover);
    border-radius: 10px;
}

.checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
    min-width: 24px;
    background-color: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.checkmark-svg {
    width: 16px;
    height: 16px;
    stroke: var(--bg-white);
    stroke-dasharray: 22;
    stroke-dashoffset: 22;
    transition: stroke-dashoffset 0.3s ease;
    transform: scale(0.8);
    opacity: 0;
    transition: var(--transition);
}

.fancy-checkbox:hover .checkmark {
    transform: scale(1.05);
    box-shadow: 0 2px 8px var(--shadow-primary);
}

.fancy-checkbox input:checked ~ .checkmark {
    background-color: var(--primary-hover);
    animation: pulse 0.5s ease;
}

.fancy-checkbox input:checked ~ .checkmark .checkmark-svg {
    stroke-dashoffset: 0;
    opacity: 1;
    transform: scale(1);
}

.terms-text {
    font-size: 16px;
    line-height: 1.4;
    color: var(--primary-hover); /* Explicitly set text color */
}

.terms-text a {
    color: var(--primary-hover);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.terms-text a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 var(--shadow-primary-light); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { transform: scale(1.1); }
}

@keyframes bounceIn {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.option-box.pulse,
.back-button.pulse,
.captcha-valid.pulse {
    animation: pulse 1.0s ease;
}



.form-group input:focus {
    font-weight: bold;
}

/* .input-valid {
    border: 2px solid var(--border-valid) !important;
    background-color: var(--bg-input-valid) !important;
    color: var(--success-color) !important; 
} */

@keyframes bounceOnce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.input-bounce {
    animation: bounceOnce 0.6s ease;
}

.confirmation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.confirmation-message {
    margin-bottom: 30px;
}

.registration-details {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.registration-details table {
    width: 100%;
    border-collapse: collapse;
}

.registration-details th, 
.registration-details td {
    padding: 10px;
    border-bottom: 1px solid var(--border-primary); /* Fixed color variable */
}

.registration-details th {
    text-align: right;
    width: 40%;
    color: var(--text-secondary);
}

.registration-details td {
    color: var(--text-primary); /* Explicitly set text color */
}

.confirmation-footer {
    margin-top: 30px;
}

#step4 {
    transition: opacity 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--error-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.error-popup.show {
    opacity: 1;
    pointer-events: all;
}

.error-popup-content {
    background-color: var(--bg-white);
    padding: 25px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px var(--shadow-dark);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.error-popup.show .error-popup-content {
    transform: translateY(0);
}

.error-popup-message {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-primary);
}

.error-popup-button {
    padding: 8px 16px;
    margin-right: 10px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.error-popup-button:hover {
    background-color: var(--primary-hover);
}

.error-popup-button.secondary {
    background-color: var(--warning-color);
    color: var(--bg-primary); /* Added text color for contrast */
}

.error-popup-button.secondary:hover {
    background-color: var(--error-color);
}

.payment-container {
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    margin: 20px 0;
}

.qr-code-wrapper {
    text-align: center;
    margin: 10px 0;
}

.qr-instruction {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.payment-instructions {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-payment-instructions);
    border-radius: 5px;
    color: var(--text-primary); /* Explicitly set text color */
}

.qr-container {
    margin: 20px auto;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
    max-width: 300px;
}

#qrCanvas {
    background: var(--bg-white);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    margin: 0 auto;
    background-color: white;
    opacity: 0.5;
}

#qrInstruction {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-light);
}


/* Input validation states */
.input-error {
    border: 2px solid var(--error-color) !important;
    background-color: var(--error-light) !important;
    color: var(--text-primary) !important; /* Added text color */
    animation: shake 0.4s ease;
}
/* 
.input-valid {
    border: 2px solid var(--border-valid) !important;
    background-color: var(--bg-input-valid) !important;
    color: var(--success-color) !important; 
    animation: bounceOnce 0.6s ease;
} */

/* Error message for invalid fields */
.input-error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Shake animation for invalid inputs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}


/* Success state with checkmark */
.input-valid {
    position: relative;
}

/* Error state with X mark */
.input-error {
    position: relative;
}

/* Loading state (if needed for async validation) */
.input-loading {
    background-image: linear-gradient(
        90deg,
        var(--bg-white) 0%,
        var(--bg-light) 50%,
        var(--bg-white) 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* Demo form for testing */
.demo-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: var(--bg-lighter);
    border-radius: 8px;
}



/* Apply opacity to all input-related elements */
input, 
select, 
button, 
.dynamic-input,
.captcha-input,
textarea {
  opacity: var(--input-opacity);
}

/* Ensure opacity doesn't affect functionality for disabled/readonly states */
input:disabled,
select:disabled,
button:disabled,
input[readonly],
select[readonly] {
  opacity: 0.7; /* Override with a more appropriate value for disabled states */
}

/* Apply opacity to other input-like elements */
.option-box,
.radio-option,
.fancy-checkbox .checkmark {
  opacity: var(--input-opacity);
}

/* Ensure focus states maintain good visibility */
input:focus,
select:focus,
button:focus,
.dynamic-input:focus,
.captcha-input:focus,
textarea:focus {
  opacity: 1; /* Full opacity when focused for better accessibility */
}