/* Dogs Applaws Grooming Form Plugin */

* {
    box-sizing: border-box;
}

.gfp-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #FDF2F2 0%, #F5E6F0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#gfp-form-container {
    width: 100%;
}

.gfp-content {
    animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navigation Dots (Paws) */
.gfp-nav-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    margin-top: 0;
    position: relative;
    padding: 0 16px;
    width: 100%;
}

.gfp-back-btn {
    position: absolute;
    left: 0;
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid #88e4d1;
    border-radius: 50%;
    font-size: 20px;
    color: #3f0302;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gfp-back-btn:hover {
    border-color: #3f0302;
    background: #FDF2F2;
    box-shadow: 0 4px 12px rgba(63, 3, 2, 0.15);
}

.gfp-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.gfp-paw {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(63, 3, 2, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.gfp-paw.empty {
    background: rgba(63, 3, 2, 0.1);
    border: 2px solid rgba(63, 3, 2, 0.2);
}

.gfp-paw.active {
    width: 16px;
    height: 16px;
    background: #3f0302;
    box-shadow: 0 0 8px rgba(63, 3, 2, 0.4);
    border: 2px solid #3f0302;
}

.gfp-paw.completed {
    width: 14px;
    height: 14px;
    background: #3f0302;
    border: 2px solid #3f0302;
}

.gfp-card {
    background: white;
    border-radius: 40px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(75, 61, 116, 0.1);
    animation: fadeIn 0.5s ease-in-out;
    text-align: center;
    will-change: opacity, transform;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateZ(0);
    }
    to { 
        opacity: 1;
        transform: translateZ(0);
    }
}

.gfp-logo {
    font-size: 48px;
    text-align: center;
    margin-bottom: 24px;
    display: block;
}

.gfp-card h1,
.gfp-card h2 {
    color: #3f0302;
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0 0 24px 0;
    text-align: center;
}

.gfp-card p {
    color: #9B8BB3;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 16px 0;
}

.gfp-card p.gfp-small {
    font-size: 14px;
    font-style: italic;
    color: #B5A0CC;
    margin-top: 12px;
}

.gfp-form-group {
    margin-bottom: 24px;
}

.gfp-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #3f0302;
    margin-bottom: 8px;
    text-align: center;
}

.gfp-form-group input,
.gfp-form-group select {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    padding: 14px 16px;
    border: 2px solid #88e4d1;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #3f0302;
    background: white;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    text-align: center;
    will-change: border-color, box-shadow;
}

.gfp-form-group input:focus,
.gfp-form-group select:focus {
    outline: none;
    border-color: #3f0302;
    box-shadow: 0 0 0 3px rgba(63, 3, 2, 0.1);
    background: white;
}

.gfp-form-group input::placeholder {
    color: #88e4d1;
}

.gfp-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f0302' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.gfp-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
    text-align: left;
    justify-content: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.gfp-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #3f0302;
    border: 2px solid #88e4d1;
}

.gfp-checkbox label {
    font-size: 13px;
    color: #5a5a5a;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
    text-transform: none;
}

.gfp-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}

.gfp-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
    border: 2px solid #88e4d1;
    border-radius: 28px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.gfp-option:hover {
    border-color: #3f0302;
    background: rgba(63, 3, 2, 0.05);
}

.gfp-option.active {
    border-color: #3f0302;
    background: rgba(63, 3, 2, 0.08);
}

.gfp-option span:first-child {
    font-size: 40px;
}

.gfp-option span:last-child {
    font-size: 14px;
    font-weight: 700;
    color: #3f0302;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gfp-behaviors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin: 32px 0;
}

.gfp-behavior {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: 2px solid #88e4d1;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.gfp-behavior:hover {
    border-color: #3f0302;
}

.gfp-behavior.active {
    border-color: #3f0302;
    background: rgba(63, 3, 2, 0.08);
}

.gfp-behavior span:first-child {
    font-size: 24px;
}

.gfp-behavior span:last-child {
    font-size: 10px;
    font-weight: 700;
    color: #3f0302;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gfp-emojis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 32px 0;
}

.gfp-emoji {
    aspect-ratio: 1;
    font-size: 36px;
    border: 2px solid #88e4d1;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gfp-emoji:hover {
    border-color: #3f0302;
    background: rgba(63, 3, 2, 0.05);
}

.gfp-emoji.active {
    border-color: #3f0302;
    background: rgba(63, 3, 2, 0.08);
}

.gfp-review-pic {
    max-width: 200px;
    max-height: 200px;
    margin: 32px auto;
    border-radius: 16px;
    object-fit: cover;
}

.gfp-image-upload {
    position: relative;
    margin: 32px 0;
}

#gfp-image-upload {
    display: none;
}

.gfp-upload-label {
    display: block;
    border: 3px dashed #3f0302;
    border-radius: 20px;
    padding: 48px 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(63, 3, 2, 0.02);
    text-align: center;
}

.gfp-upload-label:hover {
    background: rgba(63, 3, 2, 0.08);
    border-color: #2d0201;
}

.gfp-upload-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.gfp-upload-label div:last-child {
    color: #3f0302;
    font-weight: 600;
    font-size: 16px;
}

.gfp-preview {
    text-align: center;
    margin: 24px 0;
}

.gfp-photo-section {
    margin-bottom: 24px;
}

.gfp-emoji-section {
    margin-top: 24px;
}

.gfp-or-divider {
    margin: 24px 0;
    text-align: center;
    color: #88e4d1;
    font-weight: 600;
}

.gfp-terms {
    max-height: 300px;
    overflow-y: auto;
    background: #F9F9F9;
    border: 1px solid #88e4d1;
    border-radius: 16px;
    padding: 20px;
    margin: 24px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.gfp-terms-container {
    margin: 24px 0;
}

.gfp-pdf-viewer {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.gfp-pdf-viewer iframe {
    display: block;
    width: 100%;
}

.gfp-terms-actions {
    text-align: center;
    margin-bottom: 16px;
}

.gfp-pdf-link {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(136, 228, 209, 0.1);
    border: 2px solid #88e4d1;
    border-radius: 12px;
    color: #3f0302;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.gfp-pdf-link:hover {
    background: #88e4d1;
    color: white;
}

.gfp-terms p {
    text-align: left;
    margin: 8px 0;
}

.gfp-terms ul {
    padding-left: 20px;
    margin: 8px 0;
}

.gfp-terms li {
    margin: 6px 0;
}

.gfp-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #88e4d1;
    font-weight: 700;
    font-size: 14px;
}

.gfp-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.gfp-btn {
    flex: 1;
    min-width: 140px;
    max-width: 400px;
    padding: 16px 24px;
    border: none;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.gfp-btn-primary {
    background: #3f0302;
    color: white;
    box-shadow: 0 8px 24px rgba(63, 3, 2, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gfp-btn-primary:hover {
    background: #2d0201;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(63, 3, 2, 0.3);
}

.gfp-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(63, 3, 2, 0.2);
}

.gfp-btn-primary:disabled {
    background: #d4b8b5;
    cursor: not-allowed;
    box-shadow: none;
}

.gfp-btn-primary:disabled:hover {
    background: #d4b8b5;
    transform: none;
}

.gfp-btn-secondary {
    background: white;
    color: #9B8BB3;
    border: 2px solid #88e4d1;
}

.gfp-btn-secondary:hover {
    background: #F0FFFE;
    border-color: #3f0302;
    color: #3f0302;
}

.gfp-success {
    text-align: center;
}

.gfp-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #E6F8F0;
    border: 4px solid #0b6b3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #0b6b3a;
}

.gfp-success h2 {
    margin-bottom: 16px;
}

.gfp-success p {
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 600px) {
    .gfp-wrapper {
        padding: 16px;
    }

    .gfp-card {
        padding: 28px 20px;
        border-radius: 28px;
    }

    .gfp-card h1,
    .gfp-card h2 {
        font-size: 24px;
    }

    .gfp-options {
        grid-template-columns: 1fr;
    }

    .gfp-buttons {
        flex-direction: column;
    }

    .gfp-btn {
        width: 100%;
    }

    .gfp-emojis {
        grid-template-columns: repeat(4, 1fr);
    }

    .gfp-nav-dots {
        gap: 12px;
        margin-bottom: 20px;
    }

    .gfp-back-btn {
        position: static;
        width: 40px;
        height: 40px;
    }

    .gfp-dots {
        flex-wrap: wrap;
        gap: 6px;
    }

    .gfp-dot {
        width: 8px;
        height: 8px;
    }

    .gfp-dot.active {
        width: 12px;
        height: 12px;
    }
}

