/* AdGeo Contact Form - Minimalist Step-by-Step Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #F8F9FA;
    color: #1F2937;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.scf {
    max-width: 650px;
    margin: 2rem auto;
    padding: 1rem;
}

.scf-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.scf h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.scf-subtitle {
    text-align: center;
    color: #6B7280;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.scf-step-subtitle {
    text-align: center;
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Progress Bar */
.scf-progress {
    margin-bottom: 2.5rem;
}

.scf-progress-bar {
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.scf-progress-fill {
    height: 100%;
    background: #3B82F6;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.scf-progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6B7280;
    font-weight: 500;
}

/* Steps */
.scf-step {
    display: none;
}

.scf-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.scf-step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

.scf-field {
    margin-bottom: 1.5rem;
}

.scf-field label {
    display: block;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.scf-field label .optional {
    color: #9CA3AF;
    font-weight: 400;
    font-size: 0.85rem;
}

.scf input[type="text"],
.scf input[type="email"],
.scf input[type="url"],
.scf input[type="tel"],
.scf select,
.scf textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #FFFFFF;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    color: #111827;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.scf input[type="text"]:focus,
.scf input[type="email"]:focus,
.scf input[type="url"]:focus,
.scf input[type="tel"]:focus,
.scf select:focus,
.scf textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.scf input::placeholder,
.scf textarea::placeholder {
    color: #9CA3AF;
}

.scf select {
    cursor: pointer;
    appearance: none;
    background-color: #FFFFFF !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23111827' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    color: #111827 !important;
    font-weight: 400;
}

.scf select[value=""] {
    color: #6B7280 !important;
}

.scf select option {
    background: #FFFFFF !important;
    color: #111827 !important;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
}

.scf select option:first-child {
    color: #6B7280 !important;
    font-weight: 400;
}

.scf select option[value=""]{
    color: #6B7280 !important;
}

.scf textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Checkbox Group */
.scf-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scf-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.875rem 1rem;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.scf-checkbox:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.scf-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #3B82F6;
}

.scf-checkbox span {
    color: #374151;
    font-size: 0.95rem;
    user-select: none;
}

.scf-checkbox input[type="checkbox"]:checked + span {
    color: #111827;
    font-weight: 600;
}

.scf-checkbox.checked {
    background: #EFF6FF;
    border-color: #3B82F6;
}

/* Radio Group */
.scf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scf-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.875rem 1rem;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.scf-radio:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.scf-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #3B82F6;
}

.scf-radio span {
    color: #374151;
    font-size: 0.95rem;
    user-select: none;
}

.scf-radio input[type="radio"]:checked + span {
    color: #111827;
    font-weight: 600;
}

.scf-radio.checked {
    background: #EFF6FF;
    border-color: #3B82F6;
}

/* IT Services Grid */
.scf-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.scf-service-card {
    position: relative;
    display: block;
    cursor: pointer;
    padding: 1.5rem;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.scf-service-card:hover {
    border-color: #60A5FA;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.12);
    transform: translateY(-3px);
}

.scf-service-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.scf-service-card.checked {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-color: #3B82F6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.scf-service-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scf-service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.scf-service-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.5;
}

.scf-service-card.checked .scf-service-title {
    color: #1E40AF;
    font-weight: 700;
}

/* Service Badges */
.scf-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.scf-badge-new {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

.scf-badge-top {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.scf-badge-trend {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.35);
}

.scf-service-card.checked .scf-badge {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

/* Consent Checkbox */
.scf-consent {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 1rem;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.scf-consent:hover {
    background: #F3F4F6;
}

.scf-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    margin-top: 0.15rem;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #3B82F6;
}

.scf-consent span {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    user-select: none;
}

.scf-consent.checked {
    background: #EFF6FF;
    border-color: #3B82F6;
}

/* Navigation Buttons */
.scf-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.scf-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.scf-btn-back {
    background: #FFFFFF;
    color: #6B7280;
    border: 1.5px solid #E5E7EB;
}

.scf-btn-back:hover:not(:disabled) {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.scf-btn-back:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scf-btn-next,
.scf-btn-submit {
    background: #3B82F6;
    color: #FFFFFF;
}

.scf-btn-next:hover:not(:disabled),
.scf-btn-submit:hover:not(:disabled) {
    background: #2563EB;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.scf-btn-next:disabled,
.scf-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message */
.scf-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
}

.scf-msg.success {
    background: #ECFDF5;
    border: 1.5px solid #10B981;
    color: #065F46;
}

.scf-msg.error {
    background: #FEF2F2;
    border: 1.5px solid #EF4444;
    color: #991B1B;
}

/* Loading State */
.scf-btn.loading {
    position: relative;
    color: transparent;
}

.scf-btn.loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFFFFF;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .scf {
        margin: 1rem auto;
        padding: 0.5rem;
    }

    .scf-card {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }

    .scf h1 {
        font-size: 1.5rem;
    }

    .scf-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .scf-step-subtitle {
        font-size: 0.85rem;
    }

    .scf-step-title {
        font-size: 1.1rem;
    }

    .scf-services-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .scf-service-card {
        padding: 1rem;
    }

    .scf-service-title {
        font-size: 0.95rem;
    }

    .scf-field {
        margin-bottom: 1.25rem;
    }

    .scf input[type="text"],
    .scf input[type="email"],
    .scf input[type="url"],
    .scf select,
    .scf textarea {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }

    .scf-checkbox,
    .scf-radio {
        padding: 0.75rem 0.875rem;
    }

    .scf-consent {
        padding: 0.875rem;
    }

    .scf-navigation {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .scf-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .scf-card {
        padding: 1.5rem 1rem;
    }

    .scf h1 {
        font-size: 1.3rem;
    }

    .scf-subtitle {
        font-size: 0.85rem;
    }

    .scf-step-subtitle {
        font-size: 0.8rem;
    }

    .scf-field label {
        font-size: 0.9rem;
    }

    .scf-service-card {
        padding: 0.875rem;
    }

    .scf-service-title {
        font-size: 0.9rem;
    }

    .scf-service-count {
        font-size: 0.8rem;
    }

    .scf-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .scf-checkbox span,
    .scf-radio span {
        font-size: 0.875rem;
    }

    .scf-consent span {
        font-size: 0.8rem;
    }

    .scf-navigation {
        flex-direction: column;
    }

    .scf-btn {
        width: 100%;
    }
}

/* Custom Scrollbar */
.scf textarea::-webkit-scrollbar {
    width: 6px;
}

.scf textarea::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

.scf textarea::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.scf textarea::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Focus Visible for Accessibility */
.scf *:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}
