/* Google Form Style - Replica */
.gf-form-container {
    max-width: 770px;
    margin: 20px auto;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    color: #202124;
}

.gf-form-header {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dadce0;
    padding: 24px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.gf-form-header-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: #673ab7;
    border-radius: 8px 8px 0 0;
}

.gf-form-title {
    font-size: 32px;
    font-weight: 400;
    color: #202124;
    margin: 16px 0 4px;
    line-height: 1.25;
}

.gf-form-description {
    font-size: 14px;
    color: #202124;
    margin: 8px 0;
    line-height: 1.5;
}

.gf-form-subtitle {
    font-size: 14px;
    color: #d93025;
    margin: 12px 0 0;
}

.gf-field {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gf-field:focus-within {
    border-color: #673ab7;
    box-shadow: 0 0 0 1px #673ab7;
}

.gf-label {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #202124;
    margin-bottom: 8px;
    line-height: 1.5;
}

.gf-required {
    color: #d93025;
    margin-left: 4px;
}

.gf-field-description {
    font-size: 12px;
    color: #70757a;
    margin: 4px 0 12px;
    line-height: 1.5;
}

.gf-textarea, .gf-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #80868b;
    padding: 8px 0;
    font-size: 14px;
    font-family: inherit;
    color: #202124;
    background: transparent;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.gf-textarea:focus, .gf-input:focus {
    border-bottom: 2px solid #673ab7;
    padding-bottom: 7px;
}

.gf-textarea {
    min-height: 24px;
    max-height: 200px;
}

.gf-textarea::placeholder, .gf-input::placeholder {
    color: #80868b;
}

/* File upload */
.gf-field-file .gf-file-upload-area {
    position: relative;
}

.gf-field-file .gf-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.gf-file-drop-zone {
    border: 2px dashed #dadce0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: #5f6368;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gf-file-drop-zone:hover {
    border-color: #673ab7;
    background: #f8f0ff;
}

.gf-file-icon {
    font-size: 20px;
}

.gf-file-list {
    margin-top: 8px;
}

.gf-file-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-top: 4px;
    font-size: 13px;
    color: #3c4043;
}

.gf-file-item .gf-file-name {
    flex: 1;
}

.gf-file-item .gf-file-remove {
    cursor: pointer;
    color: #5f6368;
    padding: 4px;
    border: none;
    background: none;
    font-size: 16px;
}

/* Checkbox */
.gf-field-checkbox .gf-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gf-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.gf-checkbox-item input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #673ab7;
    flex-shrink: 0;
}

/* Section header */
.gf-section-header {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 12px;
    border-top: 4px solid #673ab7;
}

.gf-section-title {
    font-size: 24px;
    font-weight: 400;
    color: #202124;
    margin: 0;
}

/* Navigation buttons */
.gf-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 12px;
}

.gf-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, box-shadow 0.2s;
}

.gf-btn-next, .gf-btn-submit {
    background: #673ab7;
    color: #fff;
}

.gf-btn-next:hover, .gf-btn-submit:hover {
    background: #7c4ddb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.gf-btn-back {
    background: transparent;
    color: #673ab7;
    border: 1px solid #dadce0;
}

.gf-btn-back:hover {
    background: #f8f0ff;
}

.gf-btn-clear {
    background: none;
    border: none;
    color: #673ab7;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    font-family: inherit;
}

.gf-btn-clear:hover {
    text-decoration: underline;
}

.gf-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.gf-page-indicator {
    font-size: 13px;
    color: #70757a;
}

/* Page visibility */
.gf-page { display: none; }
.gf-page-active { display: block; }

/* Progress bar */
.gf-progress {
    background: #e0e0e0;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 16px;
    overflow: hidden;
}

.gf-progress-bar {
    background: #673ab7;
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Success message */
.gf-success-message {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    margin: 20px auto;
    max-width: 770px;
}

.gf-success-icon {
    width: 60px;
    height: 60px;
    background: #673ab7;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.gf-success-message h2 {
    font-size: 24px;
    font-weight: 400;
    color: #202124;
    margin: 0 0 8px;
}

.gf-success-message p {
    color: #5f6368;
    font-size: 14px;
}

/* Loading */
.gf-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.gf-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #dadce0;
    border-top-color: #673ab7;
    border-radius: 50%;
    animation: gf-spin 0.8s linear infinite;
}

@keyframes gf-spin {
    to { transform: rotate(360deg); }
}

/* Validation error */
.gf-field.gf-error {
    border-color: #d93025;
}

.gf-field.gf-error .gf-textarea,
.gf-field.gf-error .gf-input {
    border-bottom-color: #d93025;
}

.gf-error-message {
    color: #d93025;
    font-size: 12px;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .gf-form-container {
        margin: 10px;
    }
    .gf-form-title {
        font-size: 24px;
    }
    .gf-field {
        padding: 16px;
    }
}
