/**
 * DummyForms Public Styles - Matching DummyForms React App
 */

/* Import Cabinet Grotesk font */
@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@400;500;600;700&display=swap');

body {
    font-family: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dummyforms-container {
    margin: 2rem auto;
    max-width: 1000px;
    width: 100%;
    padding: 0 1rem;
    font-family: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dummyforms-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.dummyforms-form {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 3rem 2.5rem;
    position: relative;
    min-height: 500px;
}

/* Progress section - above form card */
.dummyforms-progress-wrapper {
    width: 100%;
    max-width: 750px;
    margin: 0 auto 1.5rem;
}

.dummyforms-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-family: 'Cabinet Grotesk', sans-serif;
}

.dummyforms-step-text {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 400;
}

.dummyforms-progress-percentage {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 400;
}

.dummyforms-progress-container {
    position: relative;
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.dummyforms-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo */
.dummyforms-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.dummyforms-logo img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Header */
.dummyforms-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.3s ease-out;
}

.dummyforms-title {
    margin: 0 0 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
    font-family: 'Cabinet Grotesk', sans-serif;
}

.dummyforms-description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
    font-family: 'Cabinet Grotesk', sans-serif;
}

@media (min-width: 768px) {
    .dummyforms-title {
        font-size: 2.25rem;
    }
    
    .dummyforms-description {
        font-size: 1.0625rem;
    }
}

.dummyforms-form-element {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dummyforms-field-wrapper {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dummyforms-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dummyforms-label {
    font-weight: 500;
    color: #0f172a;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: block;
    font-family: 'Cabinet Grotesk', sans-serif;
}

.dummyforms-label .required {
    color: #ef4444;
    margin-left: 0.125rem;
}

.dummyforms-input,
.dummyforms-textarea,
.dummyforms-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.dummyforms-input:focus,
.dummyforms-textarea:focus,
.dummyforms-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.dummyforms-textarea {
    min-height: 120px;
    resize: vertical;
}

.dummyforms-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 0;
}

.dummyforms-option input[type="radio"],
.dummyforms-option input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
    accent-color: #3b82f6;
}

.dummyforms-option label {
    margin: 0;
    font-weight: 400;
    font-size: 1rem;
    color: #0f172a;
    cursor: pointer;
    font-family: 'Cabinet Grotesk', sans-serif;
    line-height: 1.5;
}

.dummyforms-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.dummyforms-rating input[type="radio"] {
    display: none;
}

.dummyforms-rating label {
    font-size: 2rem;
    color: #cbd5e0;
    cursor: pointer;
    transition: color 0.2s;
}

.dummyforms-rating label:hover,
.dummyforms-rating label:hover ~ label {
    color: #fbbf24;
}

.dummyforms-rating input[type="radio"]:checked ~ label {
    color: #fbbf24;
}

/* Navigation buttons */
.dummyforms-navigation {
    display: flex;
    gap: 0.75rem;
    margin-top: 3rem;
    justify-content: space-between;
}

.dummyforms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    font-family: 'Cabinet Grotesk', sans-serif;
}

.dummyforms-button:hover {
    transform: translateY(-1px);
}

.dummyforms-button:active {
    transform: translateY(0);
}

.dummyforms-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.dummyforms-prev {
    background-color: transparent;
    border-color: #e2e8f0;
    color: #64748b;
}

.dummyforms-prev:hover {
    background-color: #f8fafc;
    border-color: #cbd5e0;
}

/* Branding footer */
.dummyforms-branding {
    width: 100%;
    max-width: 750px;
    display: flex;
    justify-content: center;
    margin: 1.5rem auto 0;
}

.dummyforms-branding a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s;
    font-family: 'Cabinet Grotesk', sans-serif;
}

.dummyforms-branding a:hover {
    color: #64748b;
}

.dummyforms-branding img {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.dummyforms-branding a:hover img {
    transform: scale(1.05);
}

.dummyforms-branding .brand-name {
    font-weight: 600;
}

.dummyforms-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
}

.dummyforms-success p {
    margin: 0;
    color: #22543d;
    font-weight: 500;
}

.dummyforms-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 6px;
    padding: 1rem;
    color: #c53030;
}

.dummyforms-notice {
    background: #fffaf0;
    border: 1px solid #fbd38d;
    border-radius: 6px;
    padding: 1rem;
    color: #7c2d12;
}

/* Responsive styles */
@media (max-width: 640px) {
    .dummyforms-container {
        padding: 0 1rem;
    }
    
    .dummyforms-form {
        padding: 1.5rem;
    }
    
    .dummyforms-button {
        width: 100%;
    }
}
