/* Index Page Styles - Matsuri To Go */

body {
    background: linear-gradient(to bottom, #228B22 0%, #228B22 45%, #F5F5F5 45%, #F5F5F5 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-container {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.content {
    background: white;
    border-radius: 24px;
    padding: 32px 24px 24px;
    width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -16px;
    margin-bottom: 16px;
}

.main-title {
    font-size: 24px;
    font-weight: 600;
    color: #4A4A4A;
    line-height: 1.3;
    margin-bottom: 24px;
    max-width: 280px;
}

.subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 260px;
}

.search-button {
    width: 100%;
    max-width: 320px;
}

.search-icon {
    font-size: 20px;
}

/* Modal Body */
.modal-body {
    flex: 1;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-title {
    font-size: 26px;
    font-weight: 600;
    color: #4A4A4A;
    margin-bottom: 16px;
}


.address-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.address-input {
    width: 100%;
    padding: 16px 40px 16px 0;
    border: none;
    border-bottom: 2px solid #CCC;
    background: transparent;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #4A4A4A;
    outline: none;
}

.address-input::placeholder {
    color: #999;
    font-weight: 400;
}

.address-input:focus {
    border-bottom-color: #228B22;
}

.search-input-icon {
    position: absolute;
    right: 8px;
    font-size: 22px;
    color: #228B22;
    cursor: pointer;
}

.cep-help {
    text-align: center;
    margin-top: 16px;
}

.cep-help-text {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
}

.cep-help-text:hover {
    color: #228B22;
}

.search-cep-button {
    width: 100%;
    margin-top: 12px;
}

.search-cep-button:disabled {
    background: #6B9A6B;
    cursor: not-allowed;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
}

.search-cep-button:disabled:hover {
    background: #6B9A6B;
    transform: none;
}

/* Confirm Modal */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.confirm-modal.active {
    display: block;
}

.confirm-modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #E5E5E5;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.address-info {
    padding: 20px 16px 80px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.address-title {
    font-size: 22px;
    font-weight: 600;
    color: #4A4A4A;
    margin-bottom: 20px;
}


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

.form-label {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input-address {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid #228B22;
    background: transparent;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #4A4A4A;
    outline: none;
}

.form-input-address::placeholder {
    color: #999;
}

.form-input-address:focus {
    border-bottom-color: #1e7b1e;
}

.save-button {
    width: calc(100% - 32px);
    margin: 16px;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.save-button:not(:disabled) {
    background: #228B22;
}

.save-button:disabled {
    background: #6B9A6B;
}

.save-button:not(:disabled):hover {
    background: #1e7b1e;
    transform: translateY(-2px);
}

.save-button:not(:disabled):active {
    background: #228B22;
    transform: translateY(0);
}


/* Responsive */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 8px;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
        padding: 16px;
    }
    
    .content {
        padding: 28px 16px 20px;
        margin-left: -8px;
        margin-right: -8px;
        width: calc(100% + 16px);
        margin-bottom: 12px;
    }
    
    .main-title {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 13px;
    }

    .modal-body {
        padding: 20px 16px;
    }

    .modal-title {
        font-size: 24px;
    }


    .address-title {
        font-size: 20px;
        margin-bottom: 16px;
    }


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

    .form-input-address {
        font-size: 14px;
    }

    .save-button {
        font-size: 14px;
        padding: 12px;
        margin: 12px;
        width: calc(100% - 24px);
    }
    
    .confirm-modal-content {
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .address-info {
        padding: 20px 16px 80px;
        min-height: calc(100vh - 140px);
    }
}
