/* Apply Page Specific Styles */

.apply-section {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.apply-header {
    text-align: center;
    margin-bottom: 60px;
}

.apply-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}

.title-gradient {
    background: linear-gradient(135deg, #cc9933, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.apply-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Progress Bar */
.progress-container {
    max-width: 800px;
    margin: 0 auto 60px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step.active .step-number {
    background: #cc9933;
    color: white;
    border-color: #cc9933;
}

.step.completed .step-number {
    background: var(--success, #4caf50);
    color: white;
    border-color: var(--success, #4caf50);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 12px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #cc9933, #ff6b6b);
    transition: width 0.5s ease;
    border-radius: 2px;
}

/* Form Styles */
.apply-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

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

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Exception: Keep block display for regular labels, but not for checkbox/radio labels */
.form-group label:not(.checkbox-label):not(.radio-label) {
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 3px solid #d0d0d0;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    outline: none;
    position: relative;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: rgba(204, 153, 51, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #cc9933;
    box-shadow: 0 0 0 3px rgba(204, 153, 51, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

.form-hint code {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Input Groups */
.input-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.input-group input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    padding-right: 8px;
}

.input-suffix {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-left: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* TLD Context Section */
.tld-context-section {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.tld-context-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.context-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #cc9933, #ff6b6b);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.context-text h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tld-context-display {
    color: #cc9933;
    font-weight: 700;
    font-size: 1.1rem;
}

.context-text p {
    color: var(--text-secondary);
    margin: 0;
}

.domain-example {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.domain-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.example-item {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.example-item:hover {
    border-color: #cc9933;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.example-domain {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.example-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Domain Names */
.domain-names-list {
    margin-bottom: 12px;
}

.domain-input-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.domain-input-header {
    margin-bottom: 12px;
}

.domain-format-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.domain-format-info code {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.domain-input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    padding-right: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.domain-input:hover {
    border-color: rgba(204, 153, 51, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.domain-input:focus {
    outline: none;
    border-color: #cc9933;
    box-shadow: 0 0 0 3px rgba(204, 153, 51, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.domain-full-preview {
    background: var(--bg-secondary);
    padding: 0 16px;
    border: 2px solid var(--border-color);
    border-left: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    font-family: 'Courier New', monospace;
    min-width: 120px;
}

.domain-name-preview {
    color: #cc9933;
    font-weight: 600;
}

.remove-domain {
    margin-left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--error);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.remove-domain:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.btn-add-domain {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-add-domain:hover {
    border-color: #cc9933;
    color: #cc9933;
    background: rgba(204, 153, 51, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Pill-Style Checkboxes and Radio Buttons */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    gap: 12px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.checkbox-label:hover,
.radio-label:hover {
    border-color: rgba(204, 153, 51, 0.5);
    background: rgba(204, 153, 51, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.checkbox-label:active,
.radio-label:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.checkbox-label input,
.radio-label input {
    display: none;
}

.checkmark,
.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.radio-mark {
    border-radius: 50%;
}

/* Hover states for better visibility */
.checkbox-label:hover .checkmark,
.radio-label:hover .radio-mark {
    border-color: rgba(204, 153, 51, 0.6);
    background: rgba(204, 153, 51, 0.05);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Selected states with pill effect */
.checkbox-label input:checked + .checkmark,
.radio-label input:checked + .radio-mark {
    background: #cc9933;
    border-color: #cc9933;
    box-shadow: 0 2px 8px rgba(204, 153, 51, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.checkbox-label input:checked,
.radio-label input:checked {
    /* Style the parent label when input is checked */
}

.checkbox-label:has(input:checked),
.radio-label:has(input:checked) {
    border-color: #cc9933;
    background: linear-gradient(135deg, rgba(204, 153, 51, 0.1), rgba(204, 153, 51, 0.05));
    box-shadow: 0 4px 16px rgba(204, 153, 51, 0.2);
}

.checkbox-label input:checked + .checkmark::after,
.radio-label input:checked + .radio-mark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    animation: checkmarkPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.radio-label input:checked + .radio-mark::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: radioPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


/* Animations */
@keyframes checkmarkPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes radioPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced focus states for accessibility */
.checkbox-label:focus-within,
.radio-label:focus-within {
    outline: 2px solid #cc9933;
    outline-offset: 2px;
    border-color: #cc9933;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .checkbox-label,
    .radio-label {
        padding: 14px 16px;
        height: 52px;
        min-height: 52px;
    }

    .checkmark,
    .radio-mark {
        width: 22px;
        height: 22px;
    }

}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #cc9933, #ff6b6b);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 153, 51, 0.3);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: #cc9933;
    background: rgba(204, 153, 51, 0.05);
}

/* Review Section */
.review-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.review-group {
    margin-bottom: 32px;
}

.review-group:last-child {
    margin-bottom: 0;
}

.review-group h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.review-content {
    line-height: 1.6;
    color: var(--text-secondary);
}

.review-item {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.review-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 16px;
    min-width: 200px;
}

.review-value {
    flex: 1;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px;
    border-radius: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 24px;
}

.success-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.success-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.success-details {
    text-align: left;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
}

.success-details h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.success-details ul {
    list-style: none;
    padding: 0;
}

.success-details li {
    padding: 8px 0;
    position: relative;
    padding-left: 24px;
    color: var(--text-secondary);
}

.success-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .apply-section {
        padding: 100px 0 60px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-actions {
        flex-direction: column;
        gap: 16px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 16px;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .step {
        flex: 0 0 calc(50% - 8px);
    }

    .review-section {
        padding: 24px 20px;
    }

    .review-item {
        flex-direction: column;
    }

    .review-label {
        margin-bottom: 8px;
        min-width: auto;
    }

    .success-content {
        padding: 32px 24px;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn-primary,
    .success-actions .btn-secondary {
        width: 100%;
    }

    /* TLD Context Mobile */
    .tld-context-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .domain-examples {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .domain-input-row {
        flex-wrap: wrap;
    }

    .domain-input,
    .domain-full-preview {
        flex: 1;
        min-width: 0;
    }

    .remove-domain {
        margin-top: 8px;
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .step {
        flex: 1 1 100%;
    }

    .context-text h4 {
        font-size: 1.1rem;
    }

    .tld-context-display {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .step {
        flex: 1 1 100%;
    }

    .domain-input-row {
        flex-wrap: wrap;
    }

    .domain-input,
    .domain-preview {
        flex: 1;
        min-width: 0;
    }

    .remove-domain {
        margin-top: 8px;
        margin-left: 0;
    }
}

/* Glass effect enhancement for form elements */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(204, 153, 51, 0.1), 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Enhanced border visibility for all form elements */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .domain-input {
    border-color: #e0e0e0;
    background: #ffffff;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .domain-input {
    border-color: #404040;
    background: #2a2a2a;
}

/* Ensure inputs are clearly visible and clickable */
.form-group input:not(:disabled):not([readonly]),
.form-group select:not(:disabled):not([readonly]),
.form-group textarea:not(:disabled):not([readonly]),
.domain-input:not(:disabled) {
    cursor: text;
    position: relative;
}

.form-group input:not(:disabled):not([readonly]):hover,
.form-group select:not(:disabled):not([readonly]):hover,
.form-group textarea:not(:disabled):not([readonly]):hover,
.domain-input:not(:disabled):hover {
    cursor: text;
}

.checkbox-label input:checked + .checkmark,
.radio-label input:checked + .radio-mark {
    box-shadow: 0 4px 15px rgba(204, 153, 51, 0.3);
}

/* Loading and validation states */
.form-group.loading input::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid #cc9933;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-group.error input {
    border-color: var(--error);
}

.form-group.error .form-hint {
    color: var(--error);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Form Actions Layout */
.form-actions-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

/* Save Button */
.btn-save {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #4caf50;
    background: var(--bg-primary);
    color: #4caf50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-save:hover {
    background: #4caf50;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-save svg {
    flex-shrink: 0;
}

/* Restore Notification */
.restore-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.restore-content {
    max-width: 400px;
    width: 100%;
    padding: 32px;
    text-align: center;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
}

.restore-icon {
    margin: 0 auto 16px auto;
    color: var(--accent-color);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.restore-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.restore-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.restore-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.restore-actions .btn-primary,
.restore-actions .btn-secondary {
    flex: 1;
    min-width: 120px;
    border-radius: 50px;
}

/* Save Toast */
.save-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
    visibility: visible;
}

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

.toast-content {
    background: #4caf50;
    background: var(--success, #4caf50);
    color: white;
    padding: 16px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-icon {
    font-size: 20px;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-actions-left {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
        gap: 16px;
    }

    .btn-save,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .save-toast {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
    }

    .restore-content {
        margin: 20px;
        padding: 24px;
    }

    .restore-actions {
        flex-direction: column;
    }

    .restore-actions .btn-primary,
    .restore-actions .btn-secondary {
        width: 100%;
    }
}

/* FORCE FIX: Maximum specificity checkbox override */
form .apply-form .form-group .checkbox-group .checkbox-label,
form .apply-form .form-group .radio-group .radio-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    text-align: left !important;
}

/* FORCE FIX: Ensure checkmark positioning */
form .apply-form .form-group .checkbox-group .checkbox-label .checkmark,
form .apply-form .form-group .radio-group .radio-label .radio-mark {
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* FORCE FIX: Remove any conflicting inline styles */
form .apply-form .form-group .checkbox-group .checkbox-label[style],
form .apply-form .form-group .radio-group .radio-label[style] {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
}

/* EXCEPTION: Service Level radio buttons should look traditional */
.form-group label[for="serviceLevel"] + .radio-group,
.form-group label[for="serviceLevel"] ~ .radio-group,
.form-group label[for="estimatedDomains"] + .radio-group,
.form-group label[for="estimatedDomains"] ~ .radio-group {
    display: block !important;
    margin-bottom: 12px;
}

/* Traditional radio styling for Service Level */
.form-group label[for="serviceLevel"] + .radio-group .radio-label,
.form-group label[for="serviceLevel"] ~ .radio-group .radio-label,
.form-group label[for="estimatedDomains"] + .radio-group .radio-label,
.form-group label[for="estimatedDomains"] ~ .radio-group .radio-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    margin-bottom: 8px !important;
    transition: none !important;
}

.form-group label[for="serviceLevel"] + .radio-group .radio-label .radio-mark,
.form-group label[for="serviceLevel"] ~ .radio-group .radio-label .radio-mark,
.form-group label[for="estimatedDomains"] + .radio-group .radio-label .radio-mark,
.form-group label[for="estimatedDomains"] ~ .radio-group .radio-label .radio-mark {
    width: 16px !important;
    height: 16px !important;
    border: 2px solid var(--border-color) !important;
    background: var(--bg-primary) !important;
    margin-right: 8px !important;
    box-shadow: none !important;
}

.form-group label[for="serviceLevel"] + .radio-group .radio-label input:checked + .radio-mark,
.form-group label[for="serviceLevel"] ~ .radio-group .radio-label input:checked + .radio-mark,
.form-group label[for="estimatedDomains"] + .radio-group .radio-label input:checked + .radio-mark,
.form-group label[for="estimatedDomains"] ~ .radio-group .radio-label input:checked + .radio-mark {
    background: var(--text-primary) !important;
    border-color: var(--text-primary) !important;
}

.form-group label[for="serviceLevel"] + .radio-group .radio-label input:checked + .radio-mark::after,
.form-group label[for="serviceLevel"] ~ .radio-group .radio-label input:checked + .radio-mark::after,
.form-group label[for="estimatedDomains"] + .radio-group .radio-label input:checked + .radio-mark::after,
.form-group label[for="estimatedDomains"] ~ .radio-group .radio-label input:checked + .radio-mark::after {
    width: 8px !important;
    height: 8px !important;
    background: var(--bg-primary) !important;
}

/* Modern Phone Input Styles */
.modern-phone-container {
    position: relative;
    width: 100%;
}

.modern-phone-input {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s var(--transition);
}

.modern-phone-input:focus-within {
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(204, 153, 51, 0.2);
}

.phone-country-selector {
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid var(--glass-border);
    min-width: 100px;
    transition: background 0.3s;
}

.phone-country-selector:hover {
    background: rgba(255, 255, 255, 0.1);
}

.phone-flag {
    width: 24px;
    height: 18px;
    margin-right: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-dial-code {
    font-weight: 600;
    color: var(--text-primary);
}

.phone-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-secondary);
    margin-left: 8px;
    transition: transform 0.3s;
}

.phone-country-selector:hover .phone-arrow {
    transform: translateY(1px);
}

.phone-input-container {
    flex: 1;
}

.phone-number-input {
    width: 100%;
    padding: 16px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
}

.phone-number-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.phone-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-top: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--transition);
}

.phone-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.phone-search {
    padding: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.phone-search input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.phone-search input::placeholder {
    color: var(--text-secondary);
}

.phone-country-list {
    max-height: 250px;
    overflow-y: auto;
}

.phone-country-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.phone-country-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.country-flag {
    width: 24px;
    height: 18px;
    margin-right: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.country-code {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Phone input container positioning */
.form-group .modern-phone-container {
    width: 100%;
}