@use './general.scss'; @use './navigation-block.scss'; * { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* Form styles */ label { display: block; margin-bottom: 0.5rem; /* font-weight: 500; */ /* font-size: 0.9rem; */ cursor: pointer; } /* ===== TEXT INPUTS ===== */ input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"], input[type="week"], input[type="month"], textarea { width: 100%; padding: var(--wp--preset--spacing--20) 1rem; border: 2px solid #d1d5db; border-radius: 8px; font-size: 1rem; font-family: inherit; background-color: #ffffff; transition: all 0.2s ease-in-out; /* margin-bottom: 1rem; */ box-sizing: border-box; } input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="tel"]:focus, input[type="url"]:focus, input[type="search"]:focus, input[type="number"]:focus, input[type="date"]:focus, input[type="datetime-local"]:focus, input[type="time"]:focus, input[type="week"]:focus, input[type="month"]:focus, textarea:focus { outline: none; border-color: var(--wp--preset--color--accent-1); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); background-color: #fefefe; } input[type="text"]:hover, input[type="email"]:hover, input[type="password"]:hover, input[type="tel"]:hover, input[type="url"]:hover, input[type="search"]:hover, input[type="number"]:hover, input[type="date"]:hover, input[type="datetime-local"]:hover, input[type="time"]:hover, input[type="week"]:hover, input[type="month"]:hover, textarea:hover { border-color: #9ca3af; border-color: var(--wp--preset--color--accent-1); } /* Invalid state */ /* input:invalid, textarea:invalid { border-color: #ef4444; } input:invalid:focus, textarea:invalid:focus { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); } */ /* Disabled state */ input:disabled, textarea:disabled { background-color: #f3f4f6; border-color: #d1d5db; color: #9ca3af; cursor: not-allowed; } /* ===== TEXTAREA ===== */ textarea { resize: vertical; min-height: 120px; line-height: 1.5; } /* ===== SELECT DROPDOWN ===== */ select { width: 100%; padding: 0.75rem 1rem; border: 2px solid #d1d5db; border-radius: 8px; /* font-size: 1rem; */ font-family: inherit; background-color: #ffffff; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e"); background-position: right 0.5rem center; background-repeat: no-repeat; background-size: 1.5em 1.5em; appearance: none; cursor: pointer; transition: all 0.2s ease-in-out; margin-bottom: 1rem; box-sizing: border-box; font-weight: normal; } select:focus { outline: none; border-color: var(--wp--preset--color--custom-contrast); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } select:hover { border-color: #9ca3af; } select:disabled { background-color: #f3f4f6; border-color: #d1d5db; color: #9ca3af; cursor: not-allowed; } /* ===== CHECKBOXES ===== */ input[type="checkbox"] { width: 1.25rem; height: 1.25rem; border: 2px solid #d1d5db; border-radius: 4px; background-color: #ffffff; cursor: pointer; transition: all 0.2s ease-in-out; margin-right: 0.5rem; margin-bottom: 0; appearance: none; position: relative; } input[type="checkbox"]:checked { background-color: var(--wp--preset--color--custom-contrast); border-color: var(--wp--preset--color--custom-contrast); } input[type="checkbox"]:checked::after { content: ""; position: absolute; top: 1px; left: 4px; width: 6px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); } input[type="checkbox"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } input[type="checkbox"]:hover { border-color: #9ca3af; } input[type="checkbox"]:disabled { background-color: #f3f4f6; border-color: #d1d5db; cursor: not-allowed; } /* ===== RADIO BUTTONS ===== */ input[type="radio"] { width: 1.25rem; height: 1.25rem; border: 2px solid #d1d5db; border-radius: 50%; background-color: #ffffff; cursor: pointer; transition: all 0.2s ease-in-out; margin-right: 0.5rem; margin-bottom: 0; appearance: none; position: relative; } input[type="radio"]:checked { background-color: var(--wp--preset--color--custom-contrast); border-color: var(--wp--preset--color--custom-contrast); } input[type="radio"]:checked::after { content: ""; position: absolute; top: 0; left: 0; width: 50%; height: 50%; border-radius: 50%; background-color: white; bottom: 0; right: 0; margin: auto; } input[type="radio"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } input[type="radio"]:hover { border-color: #9ca3af; } input[type="radio"]:disabled { background-color: #f3f4f6; border-color: #d1d5db; cursor: not-allowed; } /* ===== FILE INPUT ===== */ input[type="file"] { width: 100%; padding: 0.75rem; border: 2px dashed #d1d5db; border-radius: 8px; background-color: #f9fafb; cursor: pointer; transition: all 0.2s ease-in-out; margin-bottom: 1rem; box-sizing: border-box; } input[type="file"]:hover { border-color: var(--wp--preset--color--custom-contrast); background-color: #eff6ff; } input[type="file"]:focus { outline: none; border-color: var(--wp--preset--color--custom-contrast); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } /* ===== COLOR INPUT ===== */ input[type="color"] { width: 60px; height: 40px; border: 2px solid #d1d5db; border-radius: 8px; cursor: pointer; padding: 0; background: none; margin-bottom: 1rem; } input[type="color"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } /* ===== PROGRESS BAR ===== */ progress { width: 100%; height: 12px; border-radius: 6px; appearance: none; margin-bottom: 1rem; } progress::-webkit-progress-bar { background-color: #e5e7eb; border-radius: 6px; } progress::-webkit-progress-value { background-color: var(--wp--preset--color--custom-contrast); border-radius: 6px; } progress::-moz-progress-bar { background-color: var(--wp--preset--color--custom-contrast); border-radius: 6px; } /* ===== RANGE SLIDER ===== */ input[type="range"] { width: 100%; height: 8px; border-radius: 4px; background: #d1d5db; outline: none; appearance: none; margin: 1rem 0; } input[type="range"]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--wp--preset--color--custom-contrast); cursor: pointer; transition: all 0.2s ease-in-out; } input[type="range"]::-webkit-slider-thumb:hover { background: var(--wp--preset--color--custom-contrast); transform: scale(1.1); } input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--wp--preset--color--custom-contrast); cursor: pointer; border: none; transition: all 0.2s ease-in-out; } input[type="range"]::-moz-range-thumb:hover { background: var(--wp--preset--color--custom-contrast); transform: scale(1.1); } /* ===== FIELDSETS AND LEGENDS ===== */ fieldset { border: 2px solid var(--wp--preset--color--custom-contrast); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; } legend { font-weight: 600; /* color: #374151; */ padding: 0 0.5rem; }