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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Browser warning banner */
.browser-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.browser-warning-content {
    position: relative;
}

.browser-warning-content strong {
    display: block;
    color: #856404;
    font-size: 18px;
    margin-bottom: 10px;
}

.browser-warning-content p {
    color: #856404;
    margin: 8px 0;
    line-height: 1.6;
}

.close-warning {
    background-color: #ffc107;
    color: #856404;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.close-warning:hover {
    background-color: #ffb300;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 24px;
}

.instruction-text {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.instruction-text p {
    margin: 5px 0;
    color: #1976d2;
    font-size: 14px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #2196f3;
}

input[readonly],
textarea[readonly] {
    background-color: #f9f9f9;
    cursor: not-allowed;
}

textarea {
    resize: vertical;
}

.property-content-display {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background-color: #f9f9f9;
    word-wrap: break-word;
    min-height: 100px;
    line-height: 1.6;
}

.property-content-display:empty::before {
    content: attr(data-placeholder);
    color: #999;
}

.property-content-display a {
    color: #2196f3;
    text-decoration: underline;
    word-break: break-all;
}

.property-content-display a:hover {
    color: #1976d2;
}

.error-message {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
    line-height: 1.5;
}

.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0;
    color: #2196f3;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 0;
    order: 1;
}

.error-message {
    order: 2;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e3f2fd;
    border-top-color: #2196f3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

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

.google-form-btn {
    width: 100%;
    padding: 14px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

.google-form-btn:hover:not(:disabled) {
    background-color: #45a049;
}

.google-form-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 640px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .instruction-text {
        padding: 12px;
    }
    
    .instruction-text p {
        font-size: 13px;
    }
    
    .google-form-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
}
